In My PHP extension using C++, For each HTTP request "PHP_RINIT_FUNCTION
" getting called.To trace the HTTP transaction wants to maintain a unique ID for all HTTP request.For example,In sample.php,we have the two different URL executed by using curl_exec
.
1.(http:://localhost/sample1.php) 2.(http:://localhost/sample2.php).
while executing sample.php my extension runs as follows,
` PHP_RINIT_FUNCTION(myextens`) (for sample.php)
`PHP_RINIT_FUNCTION(myextens)` (for sample1.php)
PHP_RSHUTDOWN_FUNCTION(myextens)
`PHP_RINIT_FUNCTION(myextens)` (for sample2.php)
PHP_RSHUTDOWN_FUNCTION(myextens)
PHP_RSHUTDOWN_FUNCTION(myextens)
Now, I wants to send a unique id from sample.php to sample1.php and sample2.php. Is this possible from PHP extension c++? Using SAPI can we do this?