"Hello world" in PHP
| From: | Robert P. J. Day | Date: | Fri, 30 Apr 2010 14:35:55 +0000 |
| Subject: | "Hello world" in PHP | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969381771@lists.php.net to get a copy of this message | ||
probably about to embarrass myself but i'm looking at the PHP manual page "Your first PHP-enabled page", which suggests this as an initial PHP program:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
but if i enter, then browse to that page, i get as browser output:
=====
hi world
'; ?>
=====
um ... what's with those trailing characters? did i just do something hideously dumb? misconfiguration?
rday