RE: [PHP-INSTALL] php parse error after installation
| From: | kevin | Date: | Sat, 08 Sep 2012 20:12:41 +0000 |
| Subject: | RE: [PHP-INSTALL] php parse error after installation | ||
| References: | 1 2 3 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-20186@lists.php.net to get a copy of this message | ||
Hi Daniel,
Thanks very much for that , another member pointed out my mistake
was the quotes I had used , was in fact copy and pasted to ensure no typos
but acrobat must have thought it was different character, anyway problem
definitely gone cheers
Regards kevin
-----Original Message-----
From: keith@karsites.localdomain [mailto:keith@karsites.localdomain] On
Behalf Of Keith Roberts
Sent: Sunday, 9 September 2012 04:15
Cc: php-install@lists.php.net
Subject: Re: [PHP-INSTALL] php parse error after installation
On Sat, 8 Sep 2012, Daniel Brown wrote:
> To: kevin <klane@actrix.co.nz>
> From: Daniel Brown <danbrown@php.net>
> Subject: Re: [PHP-INSTALL] php parse error after installation
>
> On Sat, Sep 8, 2012 at 3:42 AM, kevin <klane@actrix.co.nz> 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.
Well spotted Daniel.
I was just gonna say use this instead:
<head>
<title>php-info</title>
</head>
<body>
<?php phpinfo(); ?>
</body>
Kind Regards,
Keith
-----------------------------------------------------------
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with TMDA
[http://tmda.net]
-----------------------------------------------------------