executing PHP from C function [PHP extension]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
horobey
Forum Commoner
Posts: 52
Joined: Thu Jul 25, 2002 5:01 pm
Location: Ukraine
Contact:

executing PHP from C function [PHP extension]

Post 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
Post Reply