[nycphp-talk] can i replace curl with sockets?
Sterling Hughes
sterling at bumblebury.com
Wed Jan 29 16:24:05 EST 2003
> >
> > Am I going the right way about this, or is there a better way?
>
> This is the right way; aside from using cURL :) Or you could use real
> sockets (as opposed to streams, of which fsockopen() is) if you have a lot of
> time to kill.
>
> http://www.php.net/manual/en/ref.sockets.php
>
three notes:
1) Use cURL, any PHP solution you create will be 1/5 the speed, at best.
2) You can't do ssl handshakes, etc. in PHP
3) cURL and the cURL extension will be bundled as of php5
-Sterling
--
"Whether you think you can or think you can't -- you are right."
- Henry Ford
More information about the talk
mailing list