Include a file from inside an extension...
| From: | Stefano Corsi | Date: | Tue, 07 Jan 2003 16:51:13 +0000 |
| Subject: | Include a file from inside an extension... | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-93222@lists.php.net to get a copy of this message | ||
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