Strange problem... I have an IMAP server at $strServer IP that listens to $intPort.
I define a variable
$strTMP = "{".$strServer.":".$intPort."}".$strMailBox;
Then run
$resConn = imap_open($strTMP, $strUserName, $strPassWord);
If i run this script in MY PC connecting to my server SOMEPLACE ELSE and it works fine and i can read emal, attachments and all, BUT if i run this script FROM THE SERVER ITSELF i get the message:
Warning: Couldn't open stream... π
I've tried using the IP, the DNS name and "localhost" for $strServer and nothing...
Anyone please, help!