Re: Parse error with simple script
| From: | elias | Date: | Thu, 17 May 2001 17:53:39 +0000 |
| Subject: | Re: Parse error with simple script | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-53175@lists.php.net to get a copy of this message | ||
hehe;)
"Mohamed LRHAZI" <mohamed@lrhazi.com> wrote in message
news:3B037B56.D415462@lrhazi.com...
> Hi again,
>
> Ok, I wasnt that tired after all :) and had the belliant idea of loading
> my script in vi and lo and behold here is what I saw:
>
> $user| =| 'root' ;
>
> Nice, huh? This was generated by this cute editor called BlueFish.. no
> more bluefish for me.
>
> Mohamed~
>
>
> Mohamed LRHAZI wrote:
> >
> > Hello All,
> >
> > I am sure this is simple, but I really cant figure it out by myself.. at
> > least not tonight :)
> >
> > This simple script gives : Parse error: parse error in
> > /var/www/html/test.php on line 2
> > # cat /var/www/html/test.php
> > <?php
> > $user = "root" ;
> > echo "hello $user";
> > ?>
> >
> > If I comment (//) line 2, it works and the hello shows up.
> > If I replace the double quotes with single quotes, it gives the same
> > parse error.
> >
> > I already tried overwritng my php.ini with the original one and also
> > tried reinstalling the mod_php rpm.
> >
> > Thanks a lot for any hints.
> > Mohamed~
> >
> > I am using Linux Mandrake 8.0 with these rpms:
> > > rpm -qa|egrep php\|apache
> > php-ldap-4.0.4pl1-6mdk
> > apache-common-1.3.19-3mdk
> > apache-modules-1.3.19-3mdk
> > apache-mod_perl-1.3.19_1.25-3mdk
> > apache-1.3.19-3mdk
> > php-common-4.0.4pl1-6mdk
> > apache-suexec-1.3.19-3mdk
> > mod_php-4.0.4pl1-6mdk
> > php-imap-4.0.4pl1-6mdk
> > apache-conf-1.3.19-3mdk
> > php-4.0.4pl1-6mdk
> > apache-manual-1.3.19-3mdk
> > php-gd-4.0.4pl1-6mdk
> > php-readline-4.0.4pl1-6mdk
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>