Re: private static variable not running
- From: "DonO" <don.orban@xxxxxxxxx>
- Date: 31 May 2006 09:07:59 -0700
See if your config files will allow you to open php code using <? and
not <?php
I forget the setting, but that may be your problem.
HTH
D.
lamthierry@xxxxxxxxx wrote:
I have the following codes,
<?
private static $instance;
?>
which fails at he private static line with the following error message:
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION
or T_FUNCTION or T_VAR or '}'
The above was run on linux with PHP 5.1, however the above codes run
fine on windows with the same PHP version. Any help please? I really
need to get my singleton running.
Thierry
.
- Follow-Ups:
- Re: private static variable not running
- From: lamthierry
- Re: private static variable not running
- References:
- private static variable not running
- From: lamthierry
- private static variable not running
- Prev by Date: Re: Excel export problem
- Next by Date: Re: Excel export problem
- Previous by thread: private static variable not running
- Next by thread: Re: private static variable not running
- Index(es):
Relevant Pages
|