You are here: Re: Parse Error « PHP Programming Language « IT news, forums, messages
Re: Parse Error

Posted by Mike Schumann on 11/18/69 11:44

Why is the comma at the end of the line any different than the lines before
it, which parsed just fine?

Mike Schumann

"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
news:gsadnSYbcNT31KvZnZ2dnUVZ_sSdnZ2d@comcast.com...
> Mike Schumann wrote:
>> I have the following PHP code:
>>
>> <?php
>> class zen_categories_ul_generator {
>> var $root_category_id = 0,
>> $max_level = 6,
>> $data = array(),
>> $root_start_string = '',
>> $root_end_string = '',
>> $parent_start_string = '',
>> $parent_end_string = '',
>>
>> $child_start_string = '<li%s>',
>> $child_end_string = '</li>'."\n",
>>
>> $spacer_string = '',
>> $spacer_multiplier = 1;
>>
>> etc..........
>>
>> I am getting a parse error in this line:
>>
>> $child_end_string = '</li>'."\n",
>>
>> PHP doesn't like the period character.
>>
>> I am running PHP Ver 4.4.2
>>
>> Does anyone have any ideas what is going on?
>>
>> Thanks,
>
> The period is fine. But the comma at the end isn't.
>
> If you really do have a semicolon at the end, look for mismatched single
> or double quotes on a previous line.
>
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex@attglobal.net
> ==================

 

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

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