Jump to content

Turbowaffle

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Turbowaffle's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Basically, I'm creating a wrapper that calls one of a dozen or so functions available through a CGI via different 'command' strings. So, rather than write a dozen functions, or something like foo->callCgiMethod(xyz), foo->xyz() will work if I add a check in _call to see if it's one of the availble commands and then create it. I could also go through the array and create_function each of them, but I figured it'd use fewer resources to just create the function I need. 
  2. Bingo! That's exactly what I was looking for. Thanks!
  3. I want to be able to intercept function calls that are to non-existent functions, and optionally create a function of that name. I want to do something like: foo->getBar(); getBar doesn't exist, but I want to intercept the error generated to determine if I want to create the getBar function using the create_function or not.  I almost positive I read how to do this in PHP, but I can't seem to find it now.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.