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

{ read more }

It is easy to upload file when the Register_Globals are set to ON in the php.ini file (php configuration file) which is not recommended in any case for security reasons. When Globals are OFF then in this case I have tried this script and it works fine. Following is the script. Create two files. one [...]

{ read more }

by Hiroshi on September 27th, 2008

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.

{ read more }

by Hiroshi on August 4th, 2008

Use this simple test for checking or detecting user’s browser information.

{ read more }

by Hiroshi on June 23rd, 2008

Send emails using PHP and AJAX. Its a complete AJAX PHP based email solution. Just download it and give it a try.

{ read more }

function_exists — Return TRUE if the given function has been defined. To check that whether a function is defined or exists or not use function_exists. Checks the list of defined functions, both built-in (internal) and user-defined, for function_name. Returns TRUE on success or FALSE on failure.

{ read more }

String to Upper Case – strtoupper The strtoupper function takes one argument, the string you want converted to upper case and returns the converted string. Only letters of the alphabet are changed, numbers will remain the same.

{ read more }

Array & Loop Example Suppose we have a form and we want from user to select from a list of check boxes and check his favorite choices, post that data as an array and we want to display that data by calling array and arranging it in a loop. Then for this purpose consider following [...]

{ read more }

by Hiroshi on June 19th, 2008

I am describing for loop with an example that include randomizing number display using images from a directory. Use following script and create a folder nb and put images 0.gif, 1.gif, … , 9.gif containing same digit over each and see.

{ read more }

Single php file based whole file handeling and listing PHP CMS which lets you create file or edit file in a fly. No database required. It stores its data in a file. User authentication system is available in it also. You can create users in it and then after login you can create directory or [...]

{ read more }