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!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to