質問

I have a PHP file with infinite loop while(true){}. The file is loaded with Ajax request.

If I have multiple tabs opened in the same browser, is it possible to reffer only to one request?

I mean, if I open 10 tabs the ajax request will open my php file 10 times and I will have 10 files performing infinite loop while(true){}, and this is not very good for my server.

Again : Is it possible? :)

Sorry for this question, but I can't find solution for it.

役に立ちましたか?

解決

Your problem goes to identify the tab of the user. You can use a POST variable to do it.

Please refer to these questions:

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top