Hello Mark,
thanks for your reply.
stream_socket_client is OK, the problem is that not everybody is using PHP5, many are still going with PHP4, this is why I didn't consider this one to be my solution.
Liek I said, I'm trying to build like a small ftp client. Well, it does not have to do much, just upload a file. fopen will not work, I think, because in ftp you have to pass some commands to perform the tasks of logging in, optionally going into passive mode, maybe change directory and uploading the file. And each time you have to wait for socket response.
Any other ideas?
Thanks again
gaucho
P.S: I've already seen the transports page, it just states taht you can use verify_cert, etc with functions like fopen, fsockopen, etc, but doesn't show how (at least in the case of fsockopen).