php_execute_script

From: Date: Fri, 26 Sep 2003 14:31:52 +0000
Subject: php_execute_script
Groups: php.general 
Request: Send a blank email to php-general+get-164043@lists.php.net to get a copy of this message
Hi! Is there any sample code available how to use properly this API ? zend_file_handle file_handle; file_handle.type = ZEND_HANDLE_FILENAME; file_handle.filename = "c:\php\hello.php"; file_handle.free_filename = 0; file_handle.opened_path = NULL; php_execute_script( &file_handle TSRMLS_CC ); While using above code in embed example shipped with PHP source I get an error: Unknown(0) : Warning - Unknown(c:\php\hello.php): failed to create stream: No such file or directory Unknown(0) : Warning - Unknown(): Failed opening 'c:\php\sql.php' for inclusion (include_path='.;c:\php4\pear') Can anybody share some light on using php_execute_script ?

Attachment: [message/rfc822]
« previous php.general (#164043) next »