Reply to strange pop-problem

Your name:

Reply:


Posted by Ron Eggler @ work on 06/13/05 16:50

Hi,
I got a strange problem:
I can establish a connection to a pop-server with following line:
$mbox = imap_open ("{".$server."/pop3/notls:110}INBOX", $user, $pass);
then I get several variables back over this connection.
I also get the header of every mail by: $header = imap_headerinfo ($mbox,
$i);
and then I get the sender by $header->senderaddress and I wanna check if it
contains an '@' with:
if (strpos($header->senderaddress,"@"))
I would like to check if the domain exists so I check for a '>' at the end:
if (strpos($header->senderaddress,">"))
{
echo "snip<br>\n";
$URL=substr($URL,0,-1);
}
here is the problem: if I got it like this, the browser gives the error:
Warning: imap_open(): Couldn't open stream
{pop.rideon.ch/pop3/notls:110}INBOX in /srv/www/htdocs/web2/html/php/pop.php
on line 7
Can't connect: POP3 connection broken in command
and if I gonna comment out the line '$URL=substr($URL,0,-1);' in the if() it
works great. why the hell?????
Thank you!

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация