chmod, premature end of script headers error, etc: HELP!
Posted: Thu Dec 05, 2002 12:58 pm
I created a website at home and it works fine. But after uploading my files to my hosting company, I got the following error:
Not knowing what any of that meant, I did a search here on chmod and I tried just about every solution I could find. I put:
in my code in the main.php file. Then I uploaded it to my hosting server and I still get the same error. The book I have is very vague on the subject of chmod and seems to steer more towards UNIX. I don't know anything about UNIX. I am running Windows XP Professional.
I haven't had this much trouble with ASP. So what am I doing wrong?
So I contacted the companies customer service support and was told the .php files must be executable - otherwise they will not run. You must chmod 755 the script.
Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: main.php
If you think this is a server error, please contact the webmaster.
Error 500
Not knowing what any of that meant, I did a search here on chmod and I tried just about every solution I could find. I put:
Code: Select all
<?php
chmod("main.php", 0755);
?>I haven't had this much trouble with ASP. So what am I doing wrong?