[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache2 & php5 Problem




On Aug 22, 2007, at 11:04 AM, Randy Patterson wrote:

On Tuesday 21 August 2007 16:04, Jose Luis Rivas Contreras wrote:
Randy Patterson wrote:>

After running the above command, this is only item related to php that it
lists;

php5_module (shared)

So it's installed... The only thing it could be happening then is that
your script is wrong...

Here's the entire php file in question;

<html><body>
<h1>PHP Test</h1>
<br />
<?php print "Hello World!" ?>
</body></html>

"Hello World" doesn't print.

Randy

Have you tried;

<?php
print <<<HTML
<html><body>
<p>It works!</p>
</body></html
HTML;
?>

Or similar? Perhaps Apache just isn't parsing the php in what it thinks is an HTML file. (make sure the file's extension is one Apache knows to look for script in. That is, .php or something like .phtm for a mix-type file. It really doesn't matter as long as you and Apache know.)



Reply to: