Showing posts with label Core PHP. Show all posts
Showing posts with label Core PHP. Show all posts

Monday, April 29, 2013

Upgrade Phpmyadmin in XAMPP

Just download the latest version of Phpmyadmin from phpmyadmin or download from the link below. http://www.phpmyadmin.net/home_page/downloads.php First take a copy of Phpmyadmin folder in XAMPP or else just rename it in XAMPP then extract the downloaded files into XAMPP folder. And now, take the config.inc.php file from the renamed folder & place it in the new folder, thats it & just check the latest version is running successfully.

Friday, April 19, 2013

Face detection using PHP

We need to install Facedetection, OpenCV PHPextensions to use these functions to find the coordinates of the faces. Go through the following resouces for more information.
http://corpocrat.com/2009/08/18/automatic-face-detection-with-php-in-linux/
https://github.com/infusion/PHP-Facedetect/
http://www.xarg.org/project/php-facedetect/


You can detect face without any PHP extension using below Script:
http://devlup.com/programming/php/face-detection-using-php/1140/
http://www.emanueleferonato.com/2010/07/06/php-face-detection-class/


http://www.codediesel.com/algorithms/face-detection-in-images-using-php/


http://svay.com/blog/face-detection-in-pure-php-without-opencv/

Frequently used Putty commands

Database Dump:
mysqldump -u username -h localhost -p dbname > filename.sql

Import Database Dump:
mysql -u username -p -h localhost DATA-BASE-NAME < data.sql

Tar a folder:
tar -cv foldername > foldername.tar

GZip the tar file:
gzip foldername.tar

Extract tar.gz file:
tar -zxvf yourfile.tar.gz

Extract .bz2 file:
bunzip2 yourfile.bz2

Extract tar.bz2file:
tar jxf backup.tar.bz2

Copy files from source to destination: scp local.xml username@hostnameORipaddress:FullFolderTargetPath