Recently I was working with some PHP project and I had to fetch some text from database but I did not want to show all the paragraph. Instead I wanted to display just some part of it and give the reader facility to have a link or read more. For example: If the original text [...]

{ read more }

by Hiroshi on August 7th, 2008

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.

{ read more }

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

{ read more }

by Hiroshi on August 7th, 2008

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 [...]

{ read more }

by Hiroshi on August 7th, 2008

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.

{ read more }

This script will tell you current date and time with current season or weather.

{ read more }

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

{ read more }

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.

{ read more }

by Hiroshi on August 7th, 2008

I think there is no way yet to find out screen resolution with PHP. hehehe. If I am wrong please correct me. But yet we can trick it to be happen ;-) If not then how can we be developers. Right! With javascript we find out screen resolution of PC. Store it in a cookie [...]

{ read more }

I have other solutions to find file path at server or file name using PHP. The thing is, some php scripts might not work with some versions of PHP or in some situations. So more methods you learn for each task with PHP, the better. Here goes more solutions; Enjoy! In this example I used [...]

{ read more }