[PHP] Resource type numbers

2002-11-11 Thread Gerard Samuel
Im debugging a script that opens a connection to a pop3 server. When I var dump the return of fsockopen() from the script Im debugging, I get - resource(38) of type (socket) I made up a dummy script to see what I would get and the return of fsockopen is - resource(1) of type (socket) My dummy

[PHP] Socket Connections Was: Re: [PHP] Resource type numbers

2002-11-11 Thread Gerard Samuel
Ok, I think I found out why the script Im debbugging is returning an empty string. 1. It opens a socket to the mailserver with fsockopen 2. It checks the greeting by reading using fgets() 3. Then it check the reponse by supplying the username to the fsockopen() connection 4. It returns an