[nycphp-talk] can i replace curl with sockets?
Hans Zaunere
zaunere at yahoo.com
Wed Jan 29 16:46:13 EST 2003
--- Sterling Hughes <sterling at bumblebury.com> wrote:
>
> > >
> > > 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
I know very little of what's involved with the SSL process, but out of
curiosity, why can't you do homegrown SSL in PHP yourself? Binary safety
issues and immature sockets?
> 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