Re: [PHP-INSTALL] Help!

[email protected] (BuildSmart)
Newsgroups php.install
Message-ID <[email protected]>
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
PGP.sig (application/pgp-signature, 188 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.