On Wednesday 29 June 2005 00:31, Andy Pieters wrote: > Hi > > Actually you can get away with this: > > header("Location: $url",301); Well it looks like we all make typos Header("Location: $url",true,301); is more like it > This will let php generate the proper headers > > Also, and I stress this point (again and again), the http specification > clearly states that location headers need to have a *fully qualified url* > not a site-specific one. > > Failure to do so puts the proper working of your site in the hands of the > end user's browser who may very well fail to redirect because he doesn't > find http://yourpage.php. (some browser do handle this correctly, but > that's besides the point). > > HTH > > Andy -- Registered Linux User Number 379093 -- --BEGIN GEEK CODE BLOCK----- Version: 3.1 GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C++++$(+++) UL++++>++++$ P-(+)>++ L+++>++++$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++) PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+) e>++++$@ h++(*) r-->++ y--()>++++ -- ---END GEEK CODE BLOCK------ -- Check out these few php utilities that I released under the GPL2 and that are meant for use with a php cli binary: http://www.vlaamse-kern.com/sas/ -- --
Attachment:
pgp7uvuM0vP7M.pgp
Description: PGP signature