aquestion about php extensions
| From: | php at jurgutis dot lm dot lt | Date: | Fri, 28 May 2004 06:47:59 +0000 |
| Subject: | aquestion about php extensions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-187094@lists.php.net to get a copy of this message | ||
Hello,
i compile c file with vc++ (php extension).
is there any possibility to execute php script in this extension?
[php code will be in one string]
---------------------------
...
//this is mod.c code
ZEND_FUNCTION(my_function)
{
for(i=0;i<5;i++) {
zend_execute_php_script( //is any function for php execution?
" echo \"text\";
while (1){
break;
}
echo 1+5;
<br>
");
}
}
...
----------------------------
then i call it:
<?
dl( "mod.dll" );
my_function();
?>
and got output in page:
---------
text
6
---------
Thanx!