Several processes in PHP

I have written a program that uses fsockopen()and fgets()to read the contents of a web site on the web or upload a file to my server from the network.

He uses the command Whileto get the headers. The problem is this: when the script is processing While, a unique client cannot request another page on my website and will wait for While()its processing to complete .

Is there any way to solve this problem?

+3
source share
3 answers

This was a problem with calling multiple session_start ()! I used session_write_close () at the end of my files that started with session_start () and now everything is working fine. Thanks to everyone.

0

Process Forking . , * nix. -.

0

php script.

, , -.

0

Source: https://habr.com/ru/post/1765223/


All Articles