|
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
Navigation:
[Reply to this message]
|