Reply to Re: PHP 4 compatible switchover (Help Needed)

Your name:

Reply:


Posted by Jon on 01/23/06 01:33

On 2006-01-22 16:10:43 -0600, "Janwillem Borleffs" <jw@jwscripts.com> said:

> Jon wrote:
>> In PHP4 i get an error stating that the $query= self::query line
>> contains an "Undefined class name 'self'"
>>
>> how, in general, can I take this and make it php4 compatible?>
>
> When the class is instantiated, simply replace "self::" with "$this->";
> when used statically, replace it with "ClassName::".
>
>
> JW

Thanks for your post, I think this will be immesly helpful. Now, one
last question to set me straight. How can I tell when a class is
instantiated vs. statically?

Thanks a bunch!
jon

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация