I have a web application mostly written in PHP and running on WAMP. This web application has connections to another server (not a database but a Java server) where it retrieves information from. There are lots of requests that will go on between the WAMP server and the Java server. Is there a way to reuse existing connections within each session? The other option is to open a connection and close it when the work is done.
Asked
Active
Viewed 117 times
-2
-
Can you say what type of connections? – RiggsFolly Jun 01 '18 at 08:17
-
i found that persistent connections can be made in PHP using stream_socket_client() functions. – Georges Lteif Jun 05 '18 at 03:30
1 Answers
0
I found that persistent connections can be made in PHP using stream_socket_client() functions. There is a good example on stackoverflow.

Georges Lteif
- 17
- 4