php's equivalent for cflocation

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
benedict
Forum Newbie
Posts: 3
Joined: Thu Jul 03, 2003 2:11 pm

php's equivalent for cflocation

Post 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
User avatar
m@ndio
Forum Regular
Posts: 163
Joined: Fri Jun 06, 2003 12:09 pm
Location: UK

Post by m@ndio »

what does cflocation do? Forgive my ignorance but I hate cold fusion :lol:
benedict
Forum Newbie
Posts: 3
Joined: Thu Jul 03, 2003 2:11 pm

Post 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'>
Drachlen
Forum Contributor
Posts: 153
Joined: Fri Apr 25, 2003 1:16 am

Post by Drachlen »

header("Location: yourpage.php");

Read the stickies bro
benedict
Forum Newbie
Posts: 3
Joined: Thu Jul 03, 2003 2:11 pm

Post by benedict »

Thanks! :D
Post Reply