[thelist] Apache and PHP problem
Koundakjian, Matthew
Matthew.Koundakjian at trw.com
Tue Feb 25 08:40:25 CST 2003
Hi...
I'm working with PHP for nearly the first time under Apache running on "Sun Linux 5". Apache is 1.3.22 and PHP is 4.0.6. Both were installed with the OS.
In order for a PHP page to get rendered, I have to have a <HTML> tag in it and the file has to be executable.
In other words, a file containing only
<?php $myvar = "<html><body><h2>Hello World</h2></body></html>"; echo $myvar; ?>
or something, fails.... while
<html>
<?php $myvar = "<html><body><h2>Hello World</h2></body></html>"; echo $myvar; ?> <html>
works...
TIA...
Bye,
Matt
More information about the thelist
mailing list