|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
headache with header() Bizaarrrr!
I did a
header("refresh: 2; url = http://" . $_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/loggedin.php"); the first time it went to the right page - loggedin.php; but since I did not have such a page. It came back with page-not-found. Next I put loggedin.php in the right place. and this time I see the redirect went to ....../index.php!!! WHY? now no matter what I do, the redirect always goes to ....../index.php!! Nowhere in my script tells the redirect to go to index.php!!! weird... What have I done wrong here? I am pulling my hair out, pls help! Robert |
|
#2
|
|||
|
|||
|
hi, maybe your loggedin.php has the redirect to index.php
just a thought |
|
#3
|
||||
|
||||
|
Quote:
![]() Was thinking the same thing. Post some code when it's not there.
__________________
Work to live, don't live to work |
|
#4
|
|||
|
|||
|
Oh sorry guys I just found out what caused it... It got redirected twice,
as a result I was finally redirected to index.php... This is a good learning experience as I am very new to PHP (3 weeks all together! ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > headache with header() Bizaarrrr! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|