Cannot find self class!!!!
techu Offline
Member
***
Posts: 154
Joined: Sep 2010
Post: #1
Cannot find self class!!!!
When we call a static function we use self:: instead of $this to call the function. But I get an error that the class self is not found when I uploaded my script on my host. But it works perfectly on localhost.

Host is running redhat php 5.2.12

localhost running windows php5.3
I also tested it on ubuntu php5.3, and it works fine.

any idea anyone why this is happening?
Is it that php 5.2.12 does not support self:: or something?

[Image: banner.png]
11-27-2011 12:59 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Cannot find self class!!!! - techu - 11-27-2011 12:59 PM
RE: Cannot find self class!!!! - techu - 11-27-2011, 04:05 PM
RE: Cannot find self class!!!! - techu - 11-27-2011, 05:09 PM

 Standard Tools
Forum Jump: