another cry for php_execute_script

From: Date: Sun, 15 Sep 2002 14:15:58 +0000
Subject: another cry for php_execute_script
Groups: php.dev 
Request: Send a blank email to php-dev+get-88332@lists.php.net to get a copy of this message
Hi, i have created the code that Devon suggested me for execution of a php script inside a PHP_FE function. the source compiles ok but when i call that function simply nothing happens. what can i have not understood? here is my function: PHP_FUNCTION(esegui) {
      zend_file_handle file_handle; 
              file_handle.type = ZEND_HANDLE_FILENAME;
              /*file_handle.handle.fd = 0;*/
              /*file_handle.filename = SG(request_info).path_translated;*/
              file_handle.filename = "/usr/local/apache/htdocs/esegui.php";
              file_handle.opened_path = NULL;
              file_handle.free_filename = 0; 
      if (php_request_startup(TSRMLS_C) == FAILURE) {
              return 0;
      } 
              php_execute_script(&file_handle TSRMLS_CC); 
      zend_try {
              php_request_shutdown(NULL);
      } zend_end_try(); 
      return 1; 
} 
thanks for help!

« previous php.dev (#88332) next »