Re: PHPTriad and php error
| From: | Daniel Brown | Date: | Mon, 25 Feb 2008 17:00:29 +0000 |
| Subject: | Re: PHPTriad and php error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-270069@lists.php.net to get a copy of this message | ||
On Sun, Feb 24, 2008 at 1:53 PM, hE <thelonelynomad@gmail.com> wrote:
> hi to all,
> I set up phptriad on my computer running windows xp. When I tried to
> test php with the following program I got an error "Parse error: parse
> error, expecting
','' or ';'' in
> C:\apache\htdocs\mytest.php on line 10"
This is line 10:
> echo "This is a PHP line";
Note the quotes you're using.... instead of any kind of fancy
quotes, just use double quotes (which will allow you to translate
$variables and special characters like \n) or single quotes (which use
the literal form: $variable is not translated, but would echo as
$variable and \n would not echo a newline, but rather the literal \n).
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>