RE: PHPTriad and php error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> To: php-general@xxxxxxxxxxxxx> Date: Sun, 24 Feb 2008 20:53:03 +0200> From: thelonelynomad@xxxxxxxxx> Subject:  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
_________________________________________________________________


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux