Re: Redirecting to a parent page

From: Date: Wed, 13 Jun 2007 16:27:02 +0000
Subject: Re: Redirecting to a parent page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-256888@lists.php.net to get a copy of this message
On Wed, June 13, 2007 11:12 pm, Yamil Ortega wrote: > Lets say that I have the next structure on my web directory > > /file1.php > > /procces/file2.php > > /file3.php > > So, when I see the file1.php on the browser I see the page in this > route > > http://localhost/apache2/file1.php > > I have a button that sends information to the /process/file2.php. > When the > process is finished, I have to come back to the parent directory page. > > Im using this instruction > > header( refresh:'3'; url=./file3.php); You need a COMPLETE url here, not just relative pathname, almost for sure. > But I got the error that in http://localhost/file3.php does not > exists > any > page > > If I use this > > header( refresh:'3'; url=file3.php); > > I got the error that in http://localchost/procces/file3.php > does not > exists > > So, how can I redirect the file2.php to the file3.php in the parent > directory? You also should consider just doing: include('file3.php'); instead of bouncing the user back-and-forth between the server/client in slow HTTP connnections... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#256888) next »