Re: [PHP] Passing an indefinite number of parameters by reference

2006-05-08 Thread Chris Jenkinson
workaround using global scope variables and eval(). I just can't think of it yet. Chris -- Chris Jenkinson [EMAIL PROTECTED] "Mistrust all in whom the impulse to punish is powerful." -- Friedrich Nietzsche, Thus Spoke Zarathustra -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Passing an indefinite number of parameters by reference

2006-05-08 Thread Chris Jenkinson
that the $variable1, $variable2, etc. variables are only references to the copy made with func_get_args(), rather than to the variables passed to the first function. Chris -- Chris Jenkinson [EMAIL PROTECTED] "Mistrust all in whom the impulse to punish is powerful." -- Friedrich

Re: [PHP] Passing an indefinite number of parameters by reference

2006-05-08 Thread Chris Jenkinson
Eric Butera wrote: One thing you could do is (assuming it's php4) [...] This is a bit of a pain though. :) Unfortunately, changing the functions to use &$params and using extract() is a significant API change and as such it would be a large amount of effort. Chris -- Chris

Re: [PHP] Passing an indefinite number of parameters by reference

2006-05-07 Thread Chris Jenkinson
passing $var_1, $var_2, etc. to the function. Thanks for your comments. I think the amount of effort I would spend learning how to use the reflection API compared to just using a defined number of variables labelled in sequence is not worth it. If there was another way, perhaps... Chris -- Chris

[PHP] Passing an indefinite number of parameters by reference

2006-05-07 Thread Chris Jenkinson
function specified in $function_name, with the variables passed as parameters to that function. Is this possible? Thanks for any help which can be offered. Chris -- Chris Jenkinson [EMAIL PROTECTED] "Mistrust all in whom the impulse to punish is powerful." -- Friedrich Nie

[PHP] Re: preg_match question

2004-08-18 Thread Chris Jenkinson
the ^ and $ characters which signify the start and the end of the string respectively. For example: $matched = preg_match('/^www\.test\.com$/', $string); For more information look at the Pattern Syntax page: --> http://php.net/manual/en/reference.pcre.pattern.syntax.php Chris --

[PHP] Cannot Load DLLs (WinXP, Apache 2, PHP 5)

2004-08-18 Thread Chris Jenkinson
e directories, but it is not loading it. PHP is stored in C:/php, and works perfectly apart from not finding the MySQL dll file. If you could advise me for how to get PHP to load this DLL, I would be very grateful! Cheers, Chris -- Chris Jenkinson [EMAIL PROTECTED] -- PHP General Mailing