Install ionCube Loader

1. Download ionCube loaders # wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz 2. Extract # tar zxvf ioncube_loaders_lin_x86.tar.gz 3. Move to /usr/local # mv ioncube /usr/local/ 4. Add reference to php.ini file Depending on PHP version select ioncube_loader_lin_5.x.so and ioncube_loader_lin_5.x_ts.so files # ls /usr/local/ioncube/ ioncube_loader_lin_4.1.so ioncube_loader_lin_4.4.so ioncube_loader_lin_5.1.so ioncube_loader_lin_5.3.so ioncube_loader_lin_4.2.so ioncube_loader_lin_4.4_ts.so ioncube_loader_lin_5.1_ts.so ioncube_loader_lin_5.3_ts.so ioncube_loader_lin_4.3.so ioncube_loader_lin_5.0.so ioncube_loader_lin_5.2.so ioncube_loader_lin_5.4.so ioncube_loader_lin_4.3_ts.so ioncube_loader_lin_5.0_ts.so ioncube_loader_lin_5.2_ts.so ioncube_loader_lin_5.4_ts.so … Read more

PHP Find Duplicate Strings in String

PHP Find Duplicate Strings in String. This demo is useful when PHP users need to find phrases in a PHP String $phrases = find_similar_phrases($string);   The function find_similar_phrases() will find the duplicate phrases in the PHP String and return an array containing duplicate phrases / strings. levenshtein — Calculate Levenshtein distance between two strings similar_text … Read more

PHP Download MP3 File by URL

PHP Download MP3 File by URL 1. WGET It will save files on web server then use php header for prompting to download file. 2. CURL CURL will not work efficiently for big files i.e. MP3, ZIP, MP4 etc. 3. file_get_contents() This will consume too much memory on server. It can first read remote URL … Read more

Upgrade PHP & MySQL on Plesk 10

1. Stop Running Apache & MySQL Server # /etc/init.d/mysqld stop # /etc/init.d/httpd stop 2. Set up the atomic channel # wget -q -O – http://www.atomicorp.com/installers/atomic | sh 3. Upgrade to PHP 5.3.x on plesk 10 # yum upgrade Now I can install “uploadprogress” extension easily pecl/uploadprogress requires PHP (version >= 5.2.0), installed version is 5.1.3 … Read more

Amazon SES integration with Joomla

Amazon Simple Email Service (Amazon SES) is a highly scalable and cost-effective bulk and transactional email-sending service for businesses and developers. Amazon SES eliminates the complexity and expense of building an in-house email solution or licensing, installing, and operating a third-party email service. The service integrates with other AWS services, making it easy to send … Read more

ImageMagick Watermarking Text on Black Transparent Background

ImageMagick create, edit, compose, or convert bitmap images. It can read and write images in different formats including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Please check last article on Image Matrix Using ImageMagick ImageMagick Watermarking Text on Black Transparent Background # convert -font Faseyha.otf -pointsize 22 -background “#0008” -fill … Read more

MIME Types List

MIME stands for “Multipurpose Internet Mail Extensions”. It’s a way of identifying files on the Internet according to their nature and format. “Content-type” header value defined in the HTTP response, the browser can open the file with the proper extension/plugin/tool. “Internet Media Type” is the same as a MIME type. MIME types were originally created … Read more

PHP IP to Country

phpIp2Country ( php IP to country ) – PHP geolocalization class with free IPs database <?php require(‘phpip2country.class.php’);          $dbConfigArray=array(         ‘host’=>’localhost’,         ‘port’=>3306,         ‘dbName’=>’ip_to_country’,         ‘dbUserName’=>’ip_to_country’,         ‘dbUserPassword’=>’QrDB9Y8CKMdLDH8Q’,         ‘tableName’=>’ip_to_country’, );          $phpIp2Country=new phpIp2Country(‘278.180.178.18’,$dbConfigArray);          print_r($phpIp2Country->getInfo(IP_INFO)); ?>   Download Source:    svn checkout http://php-ip-2-country.googlecode.com/svn/trunk/ php-ip-2-country-read-only

Pay Per Listen for Joomla

HTML5 Audio Player with Playlist HTML5 audio the element enable native audio playback within the browser. It supports all browsers i.e. iOS, Android, Firefox, Chrome, Safari, IE and Opera. HTML5 Audio Player with Playlist, Repeat, Stream Seek, Volume Control, Timer, Next, Previous, Play-Pause option. Now Play Your Favorite Radio FM Stream in HTML5 XML Playlist Player  Horizontal Playlist … Read more