Discussions Populaires Dans la Communauté Douilles

S'abonner

Questionnez la Communauté


Ask any professional question and get answers from other specialists.

Stream language
Feras Abualrub's image
La question a été ajoutée par Feras Abualrub Web Solutions Manager Qistas for Information Technology
Depuis 9 années
Réponses:
2
Adeptes:
Vues:
90
Vote Count:
0
La réponse doit contenir un minimum de 25 caractères.
fazal kareem's image
La question a été ajoutée par fazal kareem internee Oil and Gas Development Company Limited
Depuis 9 années
Réponses:
1
Adeptes:
Vues:
267
Vote Count:
0
La réponse doit contenir un minimum de 25 caractères.
Atif Majid's image
La question a été ajoutée par Atif Majid Senior PHP Programer/Team Lead RedApple Apartments AB
Depuis 9 années

How do you compare CURL and Socket programming in PHP? What are the pros and cons of both? And why do you prefer one over the other?‎

I was just wondering that we may be able to achieve the same thing using both of these methods i.e. CURL or Socket. Has anybody tried to compare these two on performance,‎ ... Voir Plus

Réponses:
2
Adeptes:
Vues:
2210
Vote Count:
0
La réponse doit contenir un minimum de 25 caractères.
Majid Hameed's image  
La répondre a été ajoutée par  Majid Hameed, Senior Java Developer, Check24 Vergleichsportal GmbH
Depuis 9 années

* Socket performs better as compared to Curl. * Usage wise Curl is better as compared to Socket. * If you want to connect to machines over internet on different non stand ... Voir Plus

Signaler CV
Paarhati Ozkasgarli's image  
La répondre a été ajoutée par  Paarhati Ozkasgarli, Consultant, Al Emadi Enterprises
Depuis 9 années

It is depends on what kind of data you want to transfer using UDP or TCP Socket. UDP is a open protocol. Every information or data go through UDP does not wrapped and doe ... Voir Plus

Signaler CV
Muhammad Majid Saleem's image  
La répondre a été ajoutée par  Muhammad Majid Saleem, Senior PHP Developer / Project Manager, SwaamTech
Depuis 9 années

I believe, both have their own advantages and disadvantages over each other. But I would suggest to user cURL.   I would recommend, you are better off using cURL because: ... Voir Plus

Signaler CV
Muhammad Ahsan Javed's image  
La répondre a été ajoutée par  Muhammad Ahsan Javed, System and Network Administrator, Lahore School of Economics
Depuis 9 années

UDP is a low-overhead transmission and connectionless protocol.  TCP is a high-reliability data transmission and connection oriented protocol. So TCP used for more sensit ... Voir Plus

Signaler CV
Waqas Ali's image  
La répondre a été ajoutée par  Waqas Ali, Principal Network Engineer, TRG (The Resource Group)
Depuis 9 années

netstat is the tool which can show your p2p connections and port opened.

Signaler CV