You are here: Re: problem with simple php code « PHP Programming Language « IT news, forums, messages
Re: problem with simple php code

Posted by Paul Herber on 11/22/06 01:14

On 21 Nov 2006 16:37:41 -0800, alice@fearofdolls.com wrote:

>I'm just learning php, and one of the first things in the book I'm
>reading has me make this file-
><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>
>
>I typed in in Notepad, saved it as test.php, ftp it to my ISP, then
>viewed in a browser and got the following error-
>Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in
>/home/fearofdo/public_html/test2.php on line 9
>
>I asked my ISP if php/mysql was installed and turned on and configured
>correctly, they said yes and that my code was wrong, that it had <93>
>and <94> where there should have been quotes, so they changed it and
>now it works, creating the proper display.

Don't know how this is happening in Notepad but it looks to me like it
could be smart quotes characters 91 and 92 instead of a single quote.

Characters (decimal) 93 and 94 are ] and ^


--
Regards, Paul Herber, Sandrila Ltd. http://www.pherber.com/
Diacrit accented characters http://www.diacrit.sandrila.co.uk/
Email address in headers is invalid.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация