Re: "Hello world" in PHP
| From: | Robert P. J. Day | Date: | Fri, 30 Apr 2010 14:47:04 +0000 |
| Subject: | Re: "Hello world" in PHP | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969381774@lists.php.net to get a copy of this message | ||
Quoting Philip Olson <philip@roshambo.org>:
On Apr 30, 2010, at 7:35 AM, Robert P. J. Day wrote:first part was cut and paste error, argh. and, yes, i embarrassed myself as i was ssh'ed into the wrong test box which didn't even have the PHP package installed. and that, people, is the danger of drinking decaf. never forget it. rdayprobably 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?Aside from the amazing mind reading ability of PHP to know you wanted 'hi' instead of 'hello', my guess is you do not have PHP enabled (at least, for the file extension you're using).