PHP SAPI Embeded Backup problem
| From: | Tigran Bayburtsyan | Date: | Thu, 20 Feb 2014 08:44:45 +0000 |
| Subject: | PHP SAPI Embeded Backup problem | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-72699@lists.php.net to get a copy of this message | ||
Hello.
I'm creating linux based C project and I need PHP Embeded interpreter , and
I've included it successfully , but now I need to run 2 parts of one PHP
script in 2 different threads.
Example:
part1:
<?php $k = 15; ?>
part2:
<?php echo $k; ?>
part2 script will run many times , but part1 will run only one time. I
think I need something like backing up PHP interpreter state after part1
script execution and restoring it before part2 script execution.
Is it possible with PHP SAPI ? Or what part of PHP source I need to edit
for making something like this.
Thanks.