Open a php page

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


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-02-2006
S.Voll
 
Posts: n/a
Default Open a php page

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.


Reply With Quote
  #2 (permalink)  
Old 04-02-2006
Zilla
 
Posts: n/a
Default Re: Open a php page

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:59 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0