You are probably best off using zend_eval_string() and eval "include "$myfile.inc;".

Andi

At 04:51 PM 1/7/2003 +0000, Stefano Corsi wrote:
Hello,

does someone understand if this is the right procedure to include a filename
from inside a C extension?

MAKE_STD_ZVAL(filename_z);
ZVAL_STRING(filename_z, "myfile.inc", 1);
op = compile_filename(ZEND_INCLUDE, filename_z);
zend_execute(op TSRMLS_CC);

Thanks,
        Stefano


--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to