New User - Problem with php and pop3-class...
| From: | Stephan Hübner | Date: | Mon, 23 Jul 2001 13:40:23 +0000 |
| Subject: | New User - Problem with php and pop3-class... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-59187@lists.php.net to get a copy of this message | ||
Hi all,
I'm new to this ML as well as to php, so I have a problem that someone might
have a solution for.
What I have to do is to get mails from a mail-account and get them into a
flash-movie. The latter thing is not the problem, probably.
I downloaded the pop3-class from Manuel Lemos.
What I have problems with is the use of this pop3-class. I just uploaded
them to the server.
I thought there should come up an error-message, saying something like
"can't find the mail-account" or something like that. But what I got when I
run the script is an output like this:
->hostname="localhost";
if(($error=$pop3_connection->Open())=="") {
Connected to the POP3 server $pop3_connection->hostname
if(($error=$pop3_connection->Login($user,$password,$apop))=="") {
...
and so on. So what happens is that part of the php-code written in the
html-site is written to the screen.
It seems that the server is interpreting the php-script, though, as the
echo-commands are executed right. But the first line (starting with "->"
should be written to the screen, right?
Does anyone know what the problem could be? Thanks for any help on this
problem.
Greetings,
Stephan Hübner