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
[Back to original message]
|