Scripts

Being a website developer, I always wanted a control in which I can find visitor’s country name, country code, region or state name and city name. I wanted to redirect users based on their country and region. Now we have a script that let’s your visitor choose or set location so that he can perform […]

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 }

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

{ 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 }

Browser Check With PHP

by Hiroshi on August 4, 2008

in Checks, Scripts

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

{ 1 comment }

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

{ 2 comments }

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.

{ 0 comments }

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.

{ 0 comments }

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

{ 0 comments }

For Loop in PHP

by Hiroshi on June 19, 2008

in Loops, Randomizing, Scripts

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.

{ 0 comments }