stream-socket-client

using curl instead of stream_socket_client

Im working with the apple push notification service, and i notice that some php apns code i found is using stream_socket_client. My host doesnt support this, but it does support curl. Ive read that curl can do SSL connections like the code uses, but im wondering if [a] anyone has experience in doing specifically this, and [b] the intersw...

PHP can't connect to localhost XMPP server on port 5222

I've set up an ejabberd install locally on my Windows box, where I also have Apache, PHP and MySQL. I've also confirmed that it works great using Digsby, and have kicked the tires a bit by creating some users, sending some messages, etc. All good. However, PHP can't open a stream using stream_socket_client to port 5222. Even at its simp...

use stream_socket_client to retrieve 2 remote files at the same time

I have a script in PHP which retrieves two very similar files and performs some tasks on the data then outputs a result. I'm currently using curl and getting one, processing it, then getting the other and processing it. I want to switch to stream_socket_client as I've heard you can retrieve both files at the same time and do the process...

socket client for android - best methods

I have a few questions about creating a socket client for android devices. 1) what is the best object/method to use to handle the socket.getInputStream() method. I've seen a few different ideas and before I start playing around with them, I'd like to hear it here first as to what you all think the best approach to handling the InputStr...

stream_socket_client() fails when using in CRON job

Hi All I have a script that runs fine in the browser, however fails when run through CRON. Specifically, the script is using stream_socket_client() to create a secure socket, however despite running fine when I run through the browser, the CRON side fails with the following errors: PHP Warning: stream_socket_client(): Failed to enabl...