Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello every one,
I have searched in google to make multithreaded socket in php, but all strategies that I have found are failed.
The problem is I'm using free webhosting (http://www.000webhost.com/[^]), and this hosting site has very limited features.
I know there is a way to make multi-threaded socket in this webhosting, and I spouse that if I shared the socket that I have created in page1.php, I can use the same socket in page2.php.
It must be correct! but I don't know how to do it!!
Can somebody tell me how to share socket resource between pages? so I can send data to server from page1.php and receiving the data from the server in page2.php

If my spouse is wrong! what is the best way to make multi-threaded socket in php, with php version 5.2.*, no pcntl_fork() and unix os.

thank you
Posted
Comments
Sergey Alexandrovich Kryukov 3-Mar-14 11:02am    
Not the best idea, I would say...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900