Reply to Re: unexpected T_STRING, expecting T_VARIABLE

Your name:

Reply:


Posted by Rik on 07/30/07 22:18

On Tue, 31 Jul 2007 00:12:38 +0200, Jeff
<it_consultant1@hotmail.com.NOSPAM> wrote:

> thanks,
>
> BTW why isn't any text displayed on the page (it only displays
> ******************)? is echo allowed in constructor?

It sure is, but this was a parse error: in building the actual low-level
representation of the script PHP could not figure out what something
meant, so nothing in your script gets run, not a thing. Only after valid
PHP syntax is parsed it will run, with possible run time errors it only
then encounters, in which case anything up to that error is run (for
instance an undefined function: your function can be declared anywhere in
the script, which may or may not include files, but PHP does not check
this prior to running, because it simply doesn't know, and function names
can even be set at runtime with possible create_function() statements
etc.).

--
Rik Wasmus

[Back to original 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

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