PHP JavaScript Mobile Detect

Mobile_Detect is a lightweight PHP class for detecting mobile devices. Mobile_Detect uses the user-agent string with specific HTTP headers to detect the mobile environment. Complete Mobile Testing: BrowserStack is a complete browser coverage tool (including mobile devices) for testing you web application. Open source mobile phone detection http://detectmobilebrowsers.com/ HOW TO DETECT MOBILE DEVICES USING JQUERY … Read more

Replace phpMyAdmin by Adminer

Adminer (formerly phpMinAdmin) is a full-featured database management tool written in PHP. It consist of a single file ready to deploy to the target server. Adminer is available for MySQL, PostgreSQL, SQLite, MS SQL and Oracle. phpMyAdmin is one of the most famous tools for managing the MySQL database. However, Adminer have important differences with … Read more

Install rtmpdump in CentOS

I was compiling FFmpeg with RTMP support, but it requires librtmp >= 2.2.f [root@svnlabs ffmpeg]# ./configure –enable-gpl –enable-nonfree –enable-libmp3lame –enable-libfaac –enable-librtmp –enable-libtheora –enable-libvorbis –enable-libx264 –enable-shared –enable-postproc –disable-yasm Package librtmp was not found in the pkg-config search path. Perhaps you should add the directory containing `librtmp.pc’ to the PKG_CONFIG_PATH environment variable No package ‘librtmp’ found ERROR: … Read more

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

MySQL open files limit

Upgrade Migration – Kaltura CE 4.0 to 5.0 I was migrating Kaltura from CE 4.0 to 5.0 but following MySQL error made me unhappy 🙁 One or more prerequisites required to install Kaltura failed: Please set ‘open_files_limit >= 20000’ in my.cnf and restart MySQL (current value is 1024) # ulimit -a | grep “open files” # … 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

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

Integrate Klarna PHP API

Klarna offer online invoice and part-payment solution that reduce your risk and increase your sales. Integration Options 1. Webstore hosted by ecommerce provider. 2. Own Integrations. 3. Webstore uses open source like Magento, Virtumart, OsCommerce, WordPress, OpenCart, Prestashop, Ubercart, XT-commerce, ZenCart etc. API Supported Countries * Denmark * Germany * Finland * Norway * Netherlands … Read more