PHP Redirection Script

| | Comments (4)

<?php
    header("Location: http://new_url/");
?>

I always forget the syntax and always have to google for it. So I am putting this code here. Am so lazy, you see. :o)

Categories




4 Comments

Joseph said:

Hey Bob,

It's me Jo here. Hey - Suppose my URL is www.joplanet.com and I want to re-direct it to www.maisnam.com. Then how can we make it so that the URL in the address bar will stay www.joplanet.com through out the browsing, while the pages of www.maisnam.com shows up?

Regards,
Jo.

soti said:

Soti here, Hey suppose I want to read from a database then output to form elements so that the user can edit. How do I go about this?
Cheers

Reply from Bobby (1/28/2006): Soti, If you are talking about a MySQL database with a PHP frontend, you can try this link: http://www.awtrey.com/tutorials/dbeweb/ .It's a short but good tutorial.

Thanks for posting this. I'm glad you are on page one of the results, all the pages above you were junk, but your's had exactly what I wanted.

Yes, I'm lazy too (and forgetful)!

Richard

Rick Lim said:

Thanks for this code. I had been wondering how to do that until i read this.

Leave a comment

About this Entry

This page contains a single entry by Bobby published on July 14, 2004 7:45 PM.

Delete Temporary Internet Files was the previous entry in this blog.

Fuji FinePix S3000 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.0