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
executing PHP from C function [PHP extension]
Moderator: General Moderators