tags:

views:

40

answers:

1

How to get Apache request thread handle number of current executing PHP script in that script?

Platform: Windows, PHP<5.3

A: 

http://php.net/manual/en/function.getmypid.php

getmypid() should give you the handle id/ process id (pid)

Thomas Winsnes
It returns Process Handle of apache (httpd.exe), but I need Thread Handle of current Thread.
codez