This is a discussion on Open a php page within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hello everyone, I am confused. I want to open a php file and find myself redirected on another. a simple ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello everyone,
I am confused. I want to open a php file and find myself redirected on another. a simple example of what I'd like to do. file1.php_______________________ <?php header(Location: http://127.0.0.1/file2.php); ?> file2.php_________________ <?php echo "you are in file 2"; ?> it doesn't work! maybe I am not using the proper function... what can I do? thanks for you help. |
|
|||
|
S.Voll wrote:
> Hello everyone, > > I am confused. I want to open a php file and find myself redirected on > another. [snip] > header(Location: http://127.0.0.1/file2.php); [snip] Try header("Location: http://127.0.0.1/file2.php"); Zilla |
![]() |
| Thread Tools | |
| Display Modes | |
|
|