Reply to Re: [PHP] PHP 5 Question about OO

Your name:

Reply:


Posted by Greg Donald on 06/02/05 21:27

On 6/2/05, GamblerZG <gambler@highstream.net> wrote:
> Maybe it's just me, but the core concept of __autoload() seems to be
> broken to me. Moreover, every proposed solution I've heard about is
> totally inside the box. I would do it like this:
> 1) Define $_AUTOLOAD superglobal.

When forced to do OO, I use it like this:

function __autoload( $class )
{
require_once( "$GLOBALS[LIB_PATH]/$class.class.php" );
}


--
Greg Donald
Zend Certified Engineer
http://destiney.com/

[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

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