Re: [PHP] Question about CREATE_FUNCTION
So sprach »Andrey Hristov« am 2001-12-21 um 17:40:07 +0200 : > $test='htmlspecialchars'; > echo $test(''); > ?> > > Produces : > > Ah, I thought you did disagree. Whatever. I misunderstood you, sorry about that. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 4 days 23 hours 45 minutes -- 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]
Re: [PHP] Question about CREATE_FUNCTION
So sprach »Andrey Hristov« am 2001-12-21 um 15:52:35 +0200 : > Nope > $test(); Please explain! Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 4 days 23 hours 37 minutes -- 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]
Re: [PHP] Question about CREATE_FUNCTION
since you CAN'T create functions runtime, unles you are using an eval expression but that's even slower that create_function.. function bla() { } $test = "bla"; $test(); Is not solving the problem since, it doesn't create a function at RUNTIME it only references a function.. (it references $test to the function pointer blä) create_function <= Php command creates a function runtime. But thanks for all your time anyway! Warm regards, Emile "Bogdan Stancescu" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Why do you draw the conclusion you're misunderstood? We are unable to answer > your question about speed -- so aren't we allowed to have a separate discussion > derrivated from your question? > > Bogdan > > Emile Bosch wrote: > > > thx for al the help but i need some help of a php developer i guess cuz i am > > misunderstood here.. > -- 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]
Re: [PHP] Question about CREATE_FUNCTION
I understand what you want to know (I dont know myself though) I dont see why it should be significantly slower than any other function (unless you're doing it millions of times in a row!!) If it doesnt recommend using a different function in the manual, I would keep using the one you're happiest with "Emile Bosch" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > thx for al the help but i need some help of a php developer i guess cuz i am > misunderstood here.. > > > "Bogdan Stancescu" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Or, to actually prove your point in the original e-mail (I checked it and > > you're right): > > > function echotest() > > { > > echo("Testing"); > > } > > > > $test="echotest"; > > ?> > > > > If you now try it won't do anything -- as you said, $test(); > > ?> is the proper code. > > > > Something worth mentioning is that even if you do ?> > > the former version won't work. > > > > Bogdan > > > > > > > $test='htmlspecialchars'; > > > echo $test(''); > > > ?> > > > > > > Produces : > > > > > > <html> > > > > > > Regards, > > > Andrey > > > > > > - Original Message - > > > From: "Alexander Skwar" <[EMAIL PROTECTED]> > > > To: "Andrey Hristov" <[EMAIL PROTECTED]> > > > Cc: <[EMAIL PROTECTED]> > > > Sent: Friday, December 21, 2001 5:35 PM > > > Subject: Re: [PHP] Question about CREATE_FUNCTION > > > > > > So sprach »Andrey Hristov« am 2001-12-21 um 15:52:35 +0200 : > > > > Nope > > > > $test(); > > > > > > Please explain! > > > > > > Alexander Skwar > > -- 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]
Re: [PHP] Question about CREATE_FUNCTION
Why do you draw the conclusion you're misunderstood? We are unable to answer your question about speed -- so aren't we allowed to have a separate discussion derrivated from your question? Bogdan Emile Bosch wrote: > thx for al the help but i need some help of a php developer i guess cuz i am > misunderstood here.. -- 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]
Re: [PHP] Question about CREATE_FUNCTION
thx for al the help but i need some help of a php developer i guess cuz i am misunderstood here.. "Bogdan Stancescu" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Or, to actually prove your point in the original e-mail (I checked it and > you're right): >function echotest() > { > echo("Testing"); > } > > $test="echotest"; > ?> > > If you now try it won't do anything -- as you said, ?> is the proper code. > > Something worth mentioning is that even if you do > the former version won't work. > > Bogdan > > > > $test='htmlspecialchars'; > > echo $test(''); > > ?> > > > > Produces : > > > > <html> > > > > Regards, > > Andrey > > > > - Original Message - > > From: "Alexander Skwar" <[EMAIL PROTECTED]> > > To: "Andrey Hristov" <[EMAIL PROTECTED]> > > Cc: <[EMAIL PROTECTED]> > > Sent: Friday, December 21, 2001 5:35 PM > > Subject: Re: [PHP] Question about CREATE_FUNCTION > > > > So sprach »Andrey Hristov« am 2001-12-21 um 15:52:35 +0200 : > > > Nope > > > $test(); > > > > Please explain! > > > > Alexander Skwar -- 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]
Re: [PHP] Question about CREATE_FUNCTION
Or, to actually prove your point in the original e-mail (I checked it and you're right): If you now try it won't do anything -- as you said, is the proper code. Something worth mentioning is that even if you do the former version won't work. Bogdan > $test='htmlspecialchars'; > echo $test(''); > ?> > > Produces : > > <html> > > Regards, > Andrey > > - Original Message - > From: "Alexander Skwar" <[EMAIL PROTECTED]> > To: "Andrey Hristov" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Friday, December 21, 2001 5:35 PM > Subject: Re: [PHP] Question about CREATE_FUNCTION > > So sprach »Andrey Hristov« am 2001-12-21 um 15:52:35 +0200 : > > Nope > > $test(); > > Please explain! > > Alexander Skwar -- 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]
Re: [PHP] Question about CREATE_FUNCTION
'); ?> Produces : <html> Regards, Andrey - Original Message - From: "Alexander Skwar" <[EMAIL PROTECTED]> To: "Andrey Hristov" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, December 21, 2001 5:35 PM Subject: Re: [PHP] Question about CREATE_FUNCTION So sprach »Andrey Hristov« am 2001-12-21 um 15:52:35 +0200 : > Nope > $test(); Please explain! Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 4 days 23 hours 37 minutes -- 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]
Re: [PHP] Question about CREATE_FUNCTION
Nope $test(); Regards, Andrey - Original Message - From: "Bogdan Stancescu" <[EMAIL PROTECTED]> To: "Emile Bosch" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, December 21, 2001 3:43 PM Subject: Re: [PHP] Question about CREATE_FUNCTION > Why do you need this? To my knowledge you get the same behaviour with > > function create_function() > { > [body] > } > > $test="create_function"; > > $test; > ?> > > Bogdan > > Emile Bosch wrote: > > > Dear list, > > Does anyone know how the internals of create function works? > > > > $test = create_function('blah','$arg,$arg2',$code); > > > > Does it really create the function in $test; or creates it a global function > > and references it to $test > > > > And further more, > > is it very SLOW? > > > > Warm regards, > > Emile Bosch > > > > -- > > 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 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 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]
Re: [PHP] Question about CREATE_FUNCTION
Thank you for you interest, I need to know this because am building an CMS package.. and create function create functions on the fly which can come in handy very much.. My questions was wheter create_function the PHP tag, slow is or not... hope someone can help me out here.. Warm regards, Emile Bosch "Bogdan Stancescu" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Why do you need this? To my knowledge you get the same behaviour with > > function create_function() > { > [body] > } > > $test="create_function"; > > $test; > ?> > > Bogdan > > Emile Bosch wrote: > > > Dear list, > > Does anyone know how the internals of create function works? > > > > $test = create_function('blah','$arg,$arg2',$code); > > > > Does it really create the function in $test; or creates it a global function > > and references it to $test > > > > And further more, > > is it very SLOW? > > > > Warm regards, > > Emile Bosch > > > > -- > > 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 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]
Re: [PHP] Question about CREATE_FUNCTION
Why do you need this? To my knowledge you get the same behaviour with Bogdan Emile Bosch wrote: > Dear list, > Does anyone know how the internals of create function works? > > $test = create_function('blah','$arg,$arg2',$code); > > Does it really create the function in $test; or creates it a global function > and references it to $test > > And further more, > is it very SLOW? > > Warm regards, > Emile Bosch > > -- > 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 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]