Gabriel A. Zorrilla Gabriel A. Zorrilla - 2 years ago 172
PHP Question

Call PHP function from url?

If I want to execute a php script, i just point the browser to

But if i want to execute a specific function inside myscript.php, is there a way? something like


Answer Source

One quick way is to do things like

then in myscript.php

if(function_exists($_GET['f'])) {

But please, for the love of all kittens, don't abuse this.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download