Quoting Philip Olson <phi...@roshambo.org>:


On Apr 30, 2010, at 7:35 AM, Robert P. J. Day wrote:

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?

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).

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.

rday





Reply via email to