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
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 $
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
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 - dup
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 th
Howdy,
I need to divide several attributes of a tag.
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 PROTECTED]
For additional commands, e-mail: [EMAIL P
6 matches
Mail list logo