Re: Help!

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



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 &lt;br&gt; 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



Attachment: PGP.sig
Description: This is a digitally signed message part


[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux