RE: [PHP] PHPTriad and php error
| From: | Bastien Koert | Date: | Sun, 24 Feb 2008 18:57:37 +0000 |
| Subject: | RE: [PHP] PHPTriad and php error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-270006@lists.php.net to get a copy of this message | ||
> To: php-general@lists.php.net> Date: Sun, 24 Feb 2008 20:53:03 +0200> From:
> thelonelynomad@gmail.com> Subject: [PHP] PHPTriad and php error> > 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"> >
> <html>> <head>> <title>PHP Test</title>> </head>>
> <body>> <p>This is an HTML line> <p>> <?php> > echo “This is a
> PHP line”;> phpinfo();> ?>> </body></html>> > what is the
> reason?> > p.s. phpinfo.php which comes with the installation executes correctly.> > --
> > PHP General Mailing List (http://www.php.net/)> To unsubscribe, visit:
> http://www.php.net/unsub.php>
Use proper quotes (single or double as long as you are consistent) to wrap the text. That is what
the error is telling you.
Note that when using quotes, double quotes will eveluate php variables correctly, while single
quotes treat them as text.
bastien
_________________________________________________________________