Category: PHP Tutorials

How to do 301 Permanent redirection in PHP without htaccess!

How to do 301 Permanent redirection in PHP without htaccess!

I hope many of us know how to do redirection in PHP using header(‘Location: page.php’); right?. But, you have to know one more important stuff in that.
There are two different kind of Re-directions:

1. 301 (permanent redirection)

2. 302 …

Learn how to Open a file and edit a file in PHP!

Learn how to Open a file and edit a file in PHP!

Learn how to open an existing file and edit the file using PHP function.

DOWNLOAD THE SCRIPT AT THE BOTTOM

fopen() is the function which help us to read, write and append text file.

fopen(‘filename.txt’, ‘r’) – allows to read …

Simple way to remove last character from a String in PHP

Simple way to remove last character from a String in PHP

 

Are you looking for a one line script that will remove the last character of a String?.
Is your question is how to remove the last Character of a String using PHP?.

Here is the Answer for you:

Its …

PHP Script to get the Latitude and Longitude using Google Map API – Simple Script!!

PHP Script to get the Latitude and Longitude using Google Map API – Simple Script!!

A Very Simple Script to get the latitude and longitude of a location using Google Map API!.
You might have seen many sites giving a tutorials which really confuse you a lot!

NOTE: Demo and Download link is at the

How to disable Power Key / Button on your Keyboard in WinXP

How to disable Power Key / Button on your Keyboard in WinXP

I hate this button on the keyboard just like you. Accidentally pressing this ‘Power Key’ on your keyboard will shutdown the system immediately without asking you!. This sucks many times while you do programming and playing some kind of interesting …

Very Simple PHP Script to Upload Image or file from an URL!

Very Simple PHP Script to Upload Image or file from an URL!

A very simple PHP Script i have written here. You can see the demo & download the script at the bottom of the post!

How difficult if you want to uplaod a Photo / Image or a PDF from an …

How to find string length without using build-in function strlen()?

How to find string length without using build-in function strlen()?

This kind of question is sometimes looks funny! but you know this is asked many times in Technical Interview Questions!!.

Yes, I think if you are here then you also crossed the situation what i had in my life!.
If …

Theme: Overlay by Kaira
Agurchand