Jump to content

Help, How do you end a Website connection!


KingOfHeart

Recommended Posts

Well I just learned that if you combine a while loop and use socket_recv($socket, $buffer, 1024, 0); it will still run if you close out your browswer.

I have it read a textfile. I closed out the browser, changed the textfile and it still sent the new message. This was 5 min after I closed it.

So I'm guessing there's no way to stop this file at all except for to let it finish.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.