Re: another cry for php_execute_script

From: Date: Mon, 16 Sep 2002 09:51:19 +0000
Subject: Re: another cry for php_execute_script
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-88341@lists.php.net to get a copy of this message
Probably your best bet is to use zend_eval_string() and to eval 'include "/usr/local/apache/htdocs/esegui.php";' Andi At 04:15 PM 9/15/2002 +0200, eminent wrote:
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! -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.dev (#88341) next »