[PHP] Re: dynamic object instances

2005-08-11 Thread Thomas Angst
Eli schrieb: You're right that using eval() slows.. But using the _init() function as you suggested is actually tricking in a way you move the constructor params to another function, but the initialization params should be sent to the constructor! I guess that it would be better if PHP will

[PHP] dynamic object instances

2005-08-10 Thread Thomas Angst
Hello List, I would like to create an object inside a function with its classname and a parameter list submitted by the function call. function create($class, $parameter) { $obj = new $class($parameter); return $obj; } This is working very well. But I have not every time the same count

Re: [PHP] Re: dynamic object instances

2005-08-10 Thread Thomas Angst
Matthew Weier O'Phinney schrieb: Use the func_* functions, along with array_shift(). In addition, you'll need to use either a standard-named static instantiator, or the class name as the constructor method: function create($class) { $args = func_get_args(); array_shift($args); // remove

[PHP] can't restart apache, help needed

2001-04-10 Thread Thomas Angst
Hello to all, I have SuSE 7.1 installed and PHP4 source downloaded from www.php.net after ./configure --with-axps=/usr/sbin/apxs make make install and /etc/init.d/apache restart is the http server no more starteable. what's going wrong here, I didn't have any problems with the older version of

Re: [PHP] can't restart apache, help needed

2001-04-10 Thread Thomas Angst
I didn't get any further errors as this in /ver/log/httpd/error_log: PHP Warning: Function registration failed - duplicate name - define in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - defined in Unknown on line 0 PHP Warning: Function registration failed -

[PHP] REGEX for tag attributes?

2001-01-17 Thread Thomas Angst
Howdy, I need to divide several attributes of a tag. div key1=val1 key2 = val2 key3='val3' key4 = "val4" how can I do this without too many time lost? Is it possible to do this with a regular expression? Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL