Hadi wrote: >> I hardly can make any sense of your description, but the following > comments >> might help you a bit. > > Look when I open javascript page I will keep pulling my script "test7.php" > and keep it alive every interval second. When I close javascript page. My > script "test7.php" should timeout and execute " > file_put_contents('/tmp/phptest1234.txt', 'test');". > > Hope im clear here. Did you get what I mean ? I think so. :) However, this is not how HTTP works. I suggest you get a basic overview by reading <http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol>, and to deepen that by reading RFC 2616 (or better the RFCs 7230-7235 obsoleting this RFC), as necessary. -- Christoph M. Becker -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php