header() redirection

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post by mydimension »

i set Apache LogLevel to debug (the highest i think) and here is what i get:

access.log:

Code: Select all

127.0.0.1 - - ї27/Sep/2002:10:20:30 -0400] "POST /login.php HTTP/1.1" - 5
error.log:

Code: Select all

їFri Sep 27 10:20:12 2002] їinfo] mod_unique_id: using ip addr 192.168.0.2
їFri Sep 27 10:20:13 2002] їinfo] Parent: Created child process 3108
їFri Sep 27 10:20:13 2002] їinfo] Parent: Duplicating socket 216 and sending it to child process 3108
їFri Sep 27 10:20:13 2002] їinfo] mod_unique_id: using ip addr 192.168.0.2
їFri Sep 27 10:20:14 2002] їinfo] BytesRead = 372 WSAProtocolInfo = 2006620
їFri Sep 27 10:20:33 2002] їinfo] master_main: Shutdown event signaled. Shutting the server down.
їFri Sep 27 10:20:46 2002] їinfo] removed PID file c:/apache/logs/httpd.pid (pid=3240)
not very informative as you can tell. i set php to report all errors and and it started warning me about my setcookie functions so i commented them all out and still go result. i then tried executing this single line of code:

Code: Select all

<?php
//test.php

header("Location: http://localhost/");
?>
and it still didn't work. my access.log and error.log show nothing different from what i show above.
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post by mydimension »

bump
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post by mydimension »

i feel like shooting myself right now. when i reinstalled my server setup i never replaced /windows/system32/php4ts.dll with the new version so i had a conflict which never got resolved........till now. let this be a lesson to all of you, follow the install directions completely.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

:lol: well at least the problem's solved...

Mac
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

we'll keep in mind to always add to the list
  • have you done this?
  • have you done that?
  • ....
  • considered a complete reinstall?
:D
Post Reply