Re: Include a file from inside an extension...
| From: | Andi Gutmans | Date: | Fri, 10 Jan 2003 10:55:59 +0000 |
| Subject: | Re: Include a file from inside an extension... | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-93301@lists.php.net to get a copy of this message | ||
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