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 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]


Удаленная работа для программистов  •  Как заработать на 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

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