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
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Cannot find self class!!!!
I'm pretty sure self:: is supported on any PHP 5.x

My Blog
11-27-2011 01:34 PM
Find all posts by this user Quote this message in a reply
techu Offline
Member
***
Posts: 154
Joined: Sep 2010
Post: #3
RE: Cannot find self class!!!!
ok, it is suddenly working..
thanks..

how to delete old php session files?

[Image: banner.png]
11-27-2011 04:05 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: Cannot find self class!!!!
Never done it before.  Search?

My Blog
11-27-2011 04:13 PM
Find all posts by this user Quote this message in a reply
techu Offline
Member
***
Posts: 154
Joined: Sep 2010
Post: #5
RE: Cannot find self class!!!!
I did but could not find anything except changing session.gc_maxlifetime.
But i am not sure if it is working in my script..

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

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: