Posted by Toby Inkster on 09/09/05 02:39
Mark Parnell wrote:
> Nonee <None@none.com> said:
>
>> I know there is a header("location: $filename") that could work but it
>> doesn't.
>
> header("location: ".$filename);
header("location: $filename") and header("location: ".$filename) are
exactly identical statements.
My two suggestions are:
1. When using your file_exists function, try using the full path from the
computer's root directory (which is probably different from the Apache
ServerRoot, unless you want to get rooted).
2. Make sure you're putting the header() statement before your PHP has
outputted any other data to the browser (including blank lines).
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|