call_user_func_array($_GET['func'],$_GET['params']);
Then use it like myscript.php?func=somefunction¶ms[]=foo¶ms[]=bar, which would be the same as calling somefunction('foo','bar');
Daniel Joyce wrote:
I have a file that draws charts, called chart.php.
Right now, I can call it using GET methods inside <IMG> tags....
<IMG src="chart.php?foo=bar">
Well, I'd like to be able to wrap it in a function, and call it via a function....
drawgraph();
and by GET syntax....
<IMG src="chart.php.drawgraph?foo==bar"> ??????
Is there a way to call a FUNCTION/METHOD in a php file using URLS?
-Daniel
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php