Re: PHPTriad and php error

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

 



On Sun, Feb 24, 2008 at 1:53 PM, hE <thelonelynomad@xxxxxxxxx> 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); } ?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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