shams Posted March 26, 2006 Share Posted March 26, 2006 hi,i just started to learn php in mandirva 2006 from online manual, the frist php code was hello.php:<html><head><title>PHP Test</title></head><body><?php echo '<p>Hello World</p>'; ?></body></html>but when i run the browser for [a href=\"http://127.0.0.1/hello.php\" target=\"_blank\"]http://127.0.0.1/hello.php[/a] this isthe error message:Server error!The server encountered an internal error and was unable to complete your request.Premature end of script headers: hello.phpIf you think this is a server error, please contact the webmaster. Quote Link to comment Share on other sites More sharing options...
shortj75 Posted March 26, 2006 Share Posted March 26, 2006 i tested it on my server and it works fine so it must be a server plus just looking at it i can tell it is rightyou can try it like this[code]<html><head><title>PHP Test</title></head><body><?php echo "<p>Hello World</p>"; ?></body></html>[/code]or like this [code]<html><head><title>PHP Test</title></head><body><?php echo 'Hello World'; ?></body></html>[/code]if none of them work then it is definatly the server Quote Link to comment Share on other sites More sharing options...
shams Posted March 27, 2006 Author Share Posted March 27, 2006 thanks the problem was with the server it worked in fedora core. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.