Re: loading classes and efficiency
| From: | daniel at electroteque dot org | Date: | Thu, 11 Sep 2003 00:45:07 +0000 |
| Subject: | Re: loading classes and efficiency | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162235@lists.php.net to get a copy of this message | ||
i'mn about to learn some java, maybe swt in the eclipse environment, it
would be nice if php could have the classes or the path precompiled in, so
all you need to do is load the object ?
> woah
>
> function create_object($class_path,$class_name) {
> include("".$class_path."/".$class_name.".php");
> return new $class_name;
> }
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php