Re: Help!
| From: | BuildSmart | Date: | Sun, 13 Apr 2008 16:57:47 +0000 |
| Subject: | Re: Help! | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-18811@lists.php.net to get a copy of this message | ||
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 part everything 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 deepend here?)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 only one 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