Google Cloud Messaging (GCM) is a free service from Google that helps Android developers to send data from their servers to Android applications on Android devices. GCM is the next generation of Android Cloud to Device Messaging (C2DM) which is currently deprecated but still in service without … [Read more...] about How to Send Message to Google Cloud Messaging (GCM) Server Using JSON and PHP
PHP
How to Set Time Zone in PHP and MySQL
Sometimes when working with PHP-MySQL application, we have to explicitly set the time zone in our application in order to match the client's time zone. Since PHP 5.3, time zone setting is mandatory and have to be set explicitly in application or in PHP configuration file (php.ini, for global used) … [Read more...] about How to Set Time Zone in PHP and MySQL
How to Get Video Thumbnail and Duration Using Mplayer and PHP
Mplayer is a free and open source media player that available for all major operating systems including Windows, Unix and Mac OS X. Basically Mplayer is a command line application but it also has GUI front end that differs to its supported operating system. In PHP, we can execute Mplayer's … [Read more...] about How to Get Video Thumbnail and Duration Using Mplayer and PHP
How to Empty All Tables in a MySQL Database with PHP
This is a simple PHP script to empty all tables in a MySQL database. This script first will list all tables in a database using 'SHOW TABLES' statement then it will empty each table using 'TRUNCATE TABLE' statement. About TRUNCATE Statement For an InnoDB table before version 5.0.3, … [Read more...] about How to Empty All Tables in a MySQL Database with PHP
How to Create Scrollable Image Slider Using JavaScript
Scrollable image slider is one of the interesting features in the image gallery application. This allows us to display thumbnails in the form of slides that can be scrolled automatically or manually using the control buttons. Figure below shows a scrollable image slider featuring four thumbnails … [Read more...] about How to Create Scrollable Image Slider Using JavaScript
How to Crop Image Using JavaScript and PHP
Image cropping is a usefull feature in web application that allows user to crop an image on a web page and save it for later use. This feature is commonly used in user's preferences tool for creating a profile image. User uploads an image from his local hardrive and then directly crop his desired … [Read more...] about How to Crop Image Using JavaScript and PHP
How to Create Facebook Application with PHP for Beginner
Facebook is the fastest growing social networking application that currently has more than 350 million active users. One of it's key features is Facebook Platform, that enable us to build applications on Facebook. Currently there are a lot of Facebook applications built by developers around the … [Read more...] about How to Create Facebook Application with PHP for Beginner
How to Zip Files or Folder On The Fly Using PHP
Sometimes in web programming when dealing with multiple files or directory download operations, it is better to serve the user with a single zip file rather than let the user manually download the file one by one using direct link download . To overcome this problem, we have to create a zip file on … [Read more...] about How to Zip Files or Folder On The Fly Using PHP
How to List A Directory Contents Using PHP (Recursive)
To list contents of a directory is simple in PHP, just use three PHP directory functions, opendir, readdir and is_dir. The code: Here's the result: To start list contents, first open the directory handle using opendir then loop to read the entire contents using readdir. Check if … [Read more...] about How to List A Directory Contents Using PHP (Recursive)
How To Define Global Absolute Path in PHP
A path is general form of a filename or directory that specified a unique location in a file system. In web programming, a path is used to define links (url) to documents and images or to include a specified library file. There are two standard ways to define a path: Absolute Path, is a path … [Read more...] about How To Define Global Absolute Path in PHP
Recent Comments