You are here: Re: Php Redirect? Or load a new page? « HTML « IT news, forums, messages
Re: Php Redirect? Or load a new page?

Posted by boclair on 09/08/05 10:53

David Dorward wrote:
> Nonee wrote:
>
>
>>I know there is a header("location: $filename"); that could work but it
>>doesn't.
>
>
> No idea why, other then perhaps your browser being picky and insisting on an
> absolute URL (as required by the HTTP spec) rather then the relative one
> you are giving it. Most browsers are pretty good at error recovery along
> those line though.
>
> I'd probably start constructing HTTP requests by hand with a telnet client
> to see exactly what was being sent back and forth.
>
All that but the address must be absolute. See the php manual

Something like this perhaps

("Location: http://" .$_SERVER['HTTP_HOST']. "/" . $filename);

Louise

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация