NYCPHP Meetup

NYPHP.org

Related Socket Question...

Jim Musil jim at nettmedia.com
Wed Jan 29 16:37:55 EST 2003


On 1/29/03 4:22 PM, "Hans Zaunere" <hans at nyphp.org> wrote:


> 
> 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.
> 


How exactly does PHP "open a socket"?  Is it using something that is part of
the PHP engine? or is it using some other system call?

For instance, how close are the following operations?

1.  Using fsockopen() to connect to port 80 on a remote server.

AND

2.  Using the shell command telnet to connect to PORT 80 on a remote server.


The reason I ask is both are moving very slowly on one of our Linux servers.
I'm suspicious of xinetd because I had a previous problem with FTP'ing that
was solved through xinetd's conf files.

Jim




More information about the talk mailing list