Jump to content

hello.php error?


shams

Recommended Posts

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 is
the error message:
Server error!

The server encountered an internal error and was unable to complete your request.
Premature end of script headers: hello.php

If you think this is a server error, please contact the webmaster.
Link to comment
Share on other sites

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 right
you 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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.