Page 1 of 1

How would I change to another website using php?

Posted: Fri Jan 02, 2009 4:35 pm
by hughmanwho
I would like to open a file and based upon what is within that file either do nothing or switch to another website. I have the file reading and writing working but can not figure out how to switch to a different website. Would anyone be able to help me? Thank you!

Re: How would I change to another website using php?

Posted: Fri Jan 02, 2009 4:57 pm
by jaoudestudios
If headers have not been sent, then in your conditional statement you can use header("LOCATION:*URL*");