Re: [PHP-INSTALL] php parse error after installation
[email protected] (Daniel Brown) Sat, 8 Sep 2012 10:58:24 -0400
| Newsgroups | php.install |
|---|---|
| Message-ID | <CAD9cneO_qXPGPhOjvfOJntPGvfunCPhwYpSm5UdDLOARmthE_w@mail.gmail.com> |
On Sat, Sep 8, 2012 at 3:42 AM, kevin <[email protected]> wrote: > Hi there, > > I have exhausted all methods I can find to fix this problem > ,which is from the following php code from php 5 for dummies book, which I > doubled checked as well from their website, > > > > <html> > > <head> > > <title>PHP Test</title> > > </head> > > <body> > > <p>This is an HTML line > > <?php > > echo “<p>This is a PHP line</p>”; Note the special quotes you're using here --- that's why. PHP doesn't understand fancy quotes, only: Single-quotes ( ' ), which PHP parses as a literal string. Double-quotes ( " ), which PHP parses as a string to be interpreted (such as the translation of variables). Backticks ( ` ), which PHP uses to execute command-line code (if permitted by system configuration). Change your quotes to either single or double quotes and your problems should vanish. -- </Daniel P. Brown> Network Infrastructure Manager http://www.php.net/