Page 1 of 1
Page Redirect in PHP!!!!
Posted: Thu Feb 12, 2004 1:08 am
by askme
Is there is any equavalent code in PHP for this ASP code
Posted: Thu Feb 12, 2004 1:32 am
by greenhorn666
Code: Select all
header("HTTP 1.0 302 Found");
header("Location: login.asp");
This isn't a good way to redirect, you should use a absolute url instead, ie :
/user/login.asp
Posted: Thu Feb 12, 2004 6:28 am
by LonelyProgrammer
Take note that if you are on the windows platform, you may have problems with sessions if you redirect pages this way (or in any way).
Posted: Thu Feb 12, 2004 6:46 am
by malcolmboston
<-- is on windows, and never has problems
<-- also has linux and never has problems
coders usually prefer linux, i prefer windows, why? ok, so your not necessarily scripting in your 'real environment' for when your site goes on-line, but linux is so annoying when it comes to link locations, dependencies, correct permissions etc etc my list could go on
eventually i will post a linux vs windows review, but dont expect linux to do to well
Posted: Thu Feb 12, 2004 7:37 am
by jason
I would post a Windows vs Linux Review here myself, but we usually try to avoid things like that, as it's usually completely useless unless done right. When the statement "dont expect linux to do to well", it usually shows a bias towards one OS, and this will cause an incredible flamewar which will not help anyone.
Rather, for example, a "How to setup Windows for the desktop" tutorial would be good and acceptable, or other tutorials like it.
Reviews that compare X to Y are pretty much useless for the most part. Half the people will agree, and the other half will flame you. Thus resulting in a useless debate, or a <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> contest.