Re: PHP Script/Thread ID thingie

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Herman Gomez schreef:
Jochem Maas wrote:
ceo@xxxxxxxxx schreef:
I'm logging things with error_log, and would like to be able to sort out one script run from another.

So I'm looking for some kind of "script id" or "thread id" or "PHP script run execution ID" type of function.

getmypid() just returns the same apache child process ID all the time, so that's not what I want.


....






Following the wrapper idea, you can use the session ID. It's unique per user, no matter if they share the thread some times.

d'oh ... looking back at the code I was thinking of I actually used the session ID!


Regards,
Herman



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux