Running Arbitrary PHP Code
| From: | Nathan Schmitz | Date: | Tue, 08 Jun 2004 16:31:41 +0000 |
| Subject: | Running Arbitrary PHP Code | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-187890@lists.php.net to get a copy of this message | ||
I'm trying to take arbitrary PHP code from within C++.
I've noted the PHP embed module, but haven't found any sample code or
directions as
to how to use it.
The other idea is to call functions directly from the DLL.
A dumpbin has given me a function list, but attempts to call
php_execute_script( .. )
fails to link within VS 6.0.
Has anyone successfully done something similar?
Is there an exported function that simply takes a string rather then the
zend_file_handle?
Does anyone have sample code?
Nathan Schmitz
Software Developer
Biap Systems, Inc.
nschmitz@biap.com