[PHP] why no create_method ?
Is there anyway to create a class method, I want to return an object which has a number of 'runtime' methods. What I want to do is parse a WSDL and generate an interface object ( with the correct functions ), the way I see it I cant do this as we lack a create_method call. I can parse the WSDL and build a class, but I then have to require the class. I dont want to do that though as its more of a static language way of doing things. The closest Ive come is this class base_obj { }; $o = new base_obj; $o->method_1 = create_function( '$str', 'echo( $str );' ); unfortunatly you cant call $o->method_1( "hello world" ); you have to do $tmp = $o->method_1; $tmp( "hello world" ); Am I missing something or is it imposible to do what I want. Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] dlopen - why ?
I take it php dosent have a dlopen func for opening shared librarys. I suppose if you dont have one. why ? Also can I turn off the output of headers, so that I can use it as a general-purpose scripting language. Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: dlopen - why ?
"Richard Lynch" > http://php.net/dl > php --help > but... can I use this to open a 'normal' dll ( not a php extension ) and extract a function with 'dlsym' ? Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]