RE: [PHP-WIN] Premature end of script headers: c:/php/php.exe

2002-05-01 Thread Dean Sadler
Solved. I feel like an idiot. Here is what I was going wrong. //redirect to protected page header("Location: /worked.php <- should be .htm"); exit(); Thanks, Dean -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] Premature end of script headers: c:/php/php.exe

2002-05-01 Thread Dean Sadler
No white space at top. Authentication function is in the same script. Here is the rest of it. PHP 4.1.1, Apache 1.3.23. function authenticate($user, $pass) { // move this to the config.php file $db_host = "localhost"; $db_user = "user"; $db_pass = "password";

[PHP-WIN] Premature end of script headers: c:/php/php.exe

2002-05-01 Thread Dean Sadler
I am having troubles with the following script. When executed I get the 500 internal server error page and an error: Premature end of script headers: c:/php/php.exe in the log files. If I comment out the header() line it works fine. I would like to redirect to the proper page based on login pas