I would assume if you have a page of 50 functions and only one gets called,
it is because you pass in the name of the action you want to happen in the
url:

actions.php?do=logout

or something like that. So you just take that string and call your action.
This of course would be a page that assumed a level of trust with the user
or was alright with the user calling any of the 50 functions.

$func = $_GET['do'];

$func();

Jacob

On 8/9/07, Jennifer Charrey <[EMAIL PROTECTED]> wrote:
>
> Scott Wrote:
> > <?php
> > // Third example - variable function call
> >
> > $funcName = 'FuncThree';
> >
> > $funcName();
> >
> > ?>
>
> Of course this is faster, but how did you choose FuncThree as the one that
> needs to be run? And if you already know you need to run FuncThree, what
> would be the point of any conditionals (and why not just call it
> directly)? Maybe I'm not understanding the original premise, but comparing
> conditionals to a function call seems... strange.
>
>
> _______________________________________________
>
> UPHPU mailing list
> [email protected]
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
>

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to