Re: [PHP-WIN] Server side redirection - yet again
[email protected] ("Jacob Kruger")
| Newsgroups | php.windows |
|---|---|
| Message-ID | <005401ca9f5c$25767bd0$6401a8c0@spacea44918228> |
Ok, also makes sense. Only thing is was making use of javascript to handle redirection since was pretty sure there wasn't/couldn't find the relevant documentation on redirecting headers - obviously haven't done enough research recently <smile> In past using ASP/ASP.Net I would have made use of something like Response.Redirect, but when I looked for something like this in PHP around a year or two ago, I didn't seem to find it, but will look again - thanks for the wake up. Stay well Jacob Kruger Blind Biker Skype: BlindZA '...fate had broken his body, but not his spirit...' ----- Original Message ----- From: "Richard Quadling" <[email protected]> To: "Jacob Kruger" <[email protected]> Cc: <[email protected]> Sent: Wednesday, January 27, 2010 3:54 PM Subject: Re: [PHP-WIN] Server side redirection - yet again > 2010/1/27 Jacob Kruger <[email protected]>: >> Ok, worked perfectly. >> >> Only thing had to remember was to first move all html headers markup tags >> below the relevant header commands, or else it seemed to include them in >> the >> data stream, and therefore corrupt the document a bit. > > I wouldn't expect there to be any HTML tags in this script. It should > do 1 of 3 things. > > 1 - Issue a redirect header to the login/home page if the session is > invalid. > 2 - Do nothing if the requested document id is invalid - though you > may want to do something different. > 3 - Output the headers and the document. > > -- > ----- > Richard Quadling > "Standing on the shoulders of some very clever giants!" > EE : http://www.experts-exchange.com/M_248814.html > EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp > Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 > ZOPA : http://uk.zopa.com/member/RQuadling > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 4810 (20100127) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > __________ Information from ESET NOD32 Antivirus, version of virus signature database 4810 (20100127) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com