On Apr 13, 2008, at 13:18 PM, Bryan wrote:
I've just set up my Apache server with mySql and PHP, and for the most parteverything works fine, except:I can't embed PHP in an HTML file (if my server starts up with INDEX.HTML I can't do anything with PHP, is this possible, or am I just off the deependhere?)
Rename the file INDEX.PHP
Also, when I run a PHP file, it doesn't seem to pay any attention to the \n in the echo or print statements. I copied the examples straight from the examples on PHP.Net, and I installed everything exactly as the instructions said to, but from reading all the comments and such, it appears I'm the onlyone having these problems? What's going on/what am I doing wrong?
Some of the material is a little dated. Example file INDEX.PHP: <?php print "This is a test for Bryan (only \\n)\n"; print "This should be on a new line but it isn't\n"; print "<br><br>\n"; # make new lines in html output and start again print "This is a test for Bryan (both <br> and \\n)<br>\n"; print "This should be on a new line and it is<br><br>\n"; print "<b>View the page source.</b><br>\n"; ?>
-- Dale
PGP.sig
Description: This is a digitally signed message part