Page 1 of 1

executing PHP from C function [PHP extension]

Posted: Thu Nov 27, 2003 5:19 am
by horobey
I am coding PHP extension. I need to execute PHP code from withing C function in this extesion. PHP code is stored in the string like

char * str = "<?PHP echo('test'); ?>";

now if I call zend_eval_string() it complains about <?PHP ?> tags. I would like the same functionality like zend_eval_string() but with possibility to pass whole PHP file to contained in the string.

Any ideas?
yuriy@horobey.com