Page 1 of 1

php's equivalent for cflocation

Posted: Thu Jul 03, 2003 2:11 pm
by benedict
Hi,

I've just recently started studying php, I'm a bit more familiar with cold fusion as I have been using it for some time now. I was wondering if there is a php function like cflocation? All my searches have turned up nothing yet.

If there is none, how can I redirect to another page?

Any help would be appreciated.

Thanks. :D

Posted: Thu Jul 03, 2003 2:18 pm
by m@ndio
what does cflocation do? Forgive my ignorance but I hate cold fusion :lol:

Posted: Thu Jul 03, 2003 7:53 pm
by benedict
The cflocation tag redirects the browser to a specified page. :D

This would redirect the user's browser to google:

<cflocation template='http://www.google.com'>

Posted: Thu Jul 03, 2003 8:18 pm
by Drachlen
header("Location: yourpage.php");

Read the stickies bro

Posted: Thu Jul 03, 2003 10:46 pm
by benedict
Thanks! :D