Re: Redirecting to a parent page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux