Jump to content

cyberjupie

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Posts posted by cyberjupie

  1. may be horobey want to encrypt some PHP string code, decrypt inside the extension and executing there, right, horobey ?

     

    If it is so, his problem is same as me.

     

    I want to evaluate php string within an extension, i use zend_eval_string(), success for simple php code like:

     

    $str = "print \"hello, world!\";";
    

     

    but, display error when zend_eval_string() parse some php code like:

     

    $str = "function {print \"hello, world!\";}";
    

     

    Any solution for this?

     

    Please, help.

     

    If the zend_eval_string function (which you want to use, im assuming its what does the work in zend, but I havn\'t looked and am at school now and cannot) (and which im hoping isn\'t like using eval(), heh ) doesn\'t like opening and closing tags, then you have to remove them. Separate your blocks, strip the tags, then feed them to zend_eval_string separatly. I havn\'t really looked at zend much, but daeken has. I don\'t really get what you mean by \"parse and execute the PHP file contained in the string\", but I\'m assuming you just want your extension to open and parse PHP from files...in which case im wondering why you\'re making the extension at all...                   

×
×
  • 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.