Re: private static variable not running
- From: lamthierry@xxxxxxxxx
- Date: 31 May 2006 10:02:02 -0700
<? or <?php, I get the same error message, just want to clarify that I
declared the
private static $instance in a class.
THierry
DonO wrote:
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
.
- References:
- private static variable not running
- From: lamthierry
- Re: private static variable not running
- From: DonO
- private static variable not running
- Prev by Date: Which array declaration is better?
- Next by Date: Re: Excel export problem
- Previous by thread: Re: private static variable not running
- Next by thread: Excel export problem
- Index(es):
Relevant Pages
|