Useful Scripts

You might have already created an account at gravatar (Globally Recognized Avatars) and enjoying your display picture or avatar at forums and blogs when you just post your comment with your email and there you are — it displays your avatar along with your comment. If you are a developer and you create websites – […]

{ 0 comments }

.htaccess file is a magic file. You can change the way your website works by using it. I have been reading a lot about .htaccess files. Perticularly .htaccess is very useful in shared web hosting environment where the users have no direct access to their servers or they want to implement some restrictions/security to their […]

{ 11 comments }

If you have to create a date object of future or past, you can do it by using the second parameter of PHP date function. This is extremely useful when doing BETWEEN comparison in MySQL. You can build the date and bind it to query.

{ 1 comment }

We can display data fetched from database in a variety of ways. Depends upon our requirement. By multiple columns I mean dividing all fetches data into columns and displaying it. Here is how We can divide the resultset into multiple columns.

{ 0 comments }

In forms its better approach to populate years drop down list rather then writing down every year manually. This script will ask you starting year and rest of years up till latest year it will populate for you.

{ 0 comments }

We can find out the difference between two given dates in PHP very easily. Consider the following PHP script:

{ 4 comments }

Suppose you want to protect you email address and want to put it online in form of image or you are displaying visitors emails in form of images while they had entered simple text, then this script is very useful. Text used in this example is my-email@hotmail.com under variable text. Find it and replace it […]

{ 0 comments }

This single file script will display all mp3 music files from directory and display song names and file size while you can play song by a link too. Just place this script in directory containing mp3 music files and browse script by local or online server.

{ 0 comments }

This script will provide you visitor’s browser’s information.

{ 1 comment }

Previously I have mentioned some ways to find out file name at server also. This script tells the exact path of file at server. I have tested it at local host and my sweet wamp server is installed in my D drive of PC.

{ 0 comments }