Re: fsockopen to own server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 16 Dec 2004 23:37:36 +0600, Raditha Dissanayake wrote:

> 
>> Escape character is '^]'.
>>* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS AUTH=LOGIN]
>>serverip IMAP4rev1 2003.339-cpanel at Wed, 15 Dec 2004
>>19:33:27 +0000 (GMT)
>>
>>so I don't think it's the firewall. 
>>
> usually a good idea to disable firewalls when having trouble with socket 
> code.

Tried that. didn't make any difference.

>>if(($s = fsockopen($id["sockname"], 0, $errno, $errstr)) === FALSE)
>>
>>$id["sockname"] is in the format /tmp/filename with the filename changing
>>based on a random value and there are no files with that format in /tmp 
>>
>>it always returns false for some reason on this server.
>>  
>>
> not sure what you are trying to do but it sounds like you are using unix 
> domain sockets where you should be using tcp. That's why it might work 
> on one machine (where web and imap are both installed) and not on the 
> other where you only have the web server but the imap server is remote.

This is actually the opposite of what is happening. It will work on the
remote server but not the local one. I've tried using unix:// and it made
no difference.

Any other suggestions?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux