Re: [PHP-DB] Pop3?
On Mon, 22 Sep 2003 16:04:06 -0400 Chris Payne [EMAIL PROTECTED] wrote: Hi there, I get an error about a T_Variable here: $messg_list=pop3_list($id); print_r $messg_list; print_r($messg_list); pop3_quit($id); My mistake but you can't really use php without learning it. Having looked up print_r in the manual you would've noticed what was missing. The danger here is that if you don't do your part you will prove those who just answer RTFM right. (The print_r line). If I change $messg_list to $id on the print_r line, it doesn't give me that error by rather the ID Number, but I try with the $messg_list I get a T_Variable error, any ideas? BTW, I haven't touched your functions so they are the same as you sent to the list, I just changed the details for my pop3 server which logs in fine as if I put in a wrong password it knows it's wrong :-) Chris On Sunday, September 21, 2003, at 11:58 PM, Chris Payne wrote: Hi there, Thanks for that, very appreciated, just one question? Without meaning to sound dumb (Which I probably will) how do I call your function? I don't usually deal with functions, I know I need to start though . Chris Don't have time to test but this is the idea: ?php require_once('pop3_fcn.php'); $id=open_pop3(server,110,username,passwd); $messg_list=pop3_list($id); print_r $messg_list; pop3_quit($id); ? Andu -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Regards, Andu Novac -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Pop3?
Hi there, Thanks for your help :-) Oh and I did read the manual, found it about 20 minutes after I sent the emeial but got sidetracked and forgot to post i'd figured it out in the group - sorry :-) Chris On Mon, 22 Sep 2003 16:04:06 -0400 Chris Payne [EMAIL PROTECTED] wrote: Hi there, I get an error about a T_Variable here: $messg_list=pop3_list($id); print_r $messg_list; print_r($messg_list); pop3_quit($id); My mistake but you can't really use php without learning it. Having looked up print_r in the manual you would've noticed what was missing. The danger here is that if you don't do your part you will prove those who just answer RTFM right. (The print_r line). If I change $messg_list to $id on the print_r line, it doesn't give me that error by rather the ID Number, but I try with the $messg_list I get a T_Variable error, any ideas? BTW, I haven't touched your functions so they are the same as you sent to the list, I just changed the details for my pop3 server which logs in fine as if I put in a wrong password it knows it's wrong :-) Chris On Sunday, September 21, 2003, at 11:58 PM, Chris Payne wrote: Hi there, Thanks for that, very appreciated, just one question? Without meaning to sound dumb (Which I probably will) how do I call your function? I don't usually deal with functions, I know I need to start though . Chris Don't have time to test but this is the idea: ?php require_once('pop3_fcn.php'); $id=open_pop3(server,110,username,passwd); $messg_list=pop3_list($id); print_r $messg_list; pop3_quit($id); ? Andu -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Regards, Andu Novac -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Pop3?
Hi there everyone, Does anyone have any sample code whereby I can conntect to, and list the emails on my pop3 server for my own username/password? I tried something on the PHP.NET documentation but I get errors :-( Basically, I need to list all emails that I have in my inbox (POP3) so then I can insert selected data into a database backup (Hard to explain). Any help would be really appreciated :-) Regards Chris
Re: [PHP-DB] Pop3?
On Sunday, September 21, 2003, at 10:53 PM, Chris Payne wrote: Hi there everyone, Does anyone have any sample code whereby I can conntect to, and list the emails on my pop3 server for my own username/password? I tried something on the PHP.NET documentation but I get errors :-( Basically, I need to list all emails that I have in my inbox (POP3) so then I can insert selected data into a database backup (Hard to explain). Any help would be really appreciated :-) Regards Chris See the attachment, I believe it works but I'm not sure if it's a draft or the real thing since I wrote it a while ago. Andu -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Pop3?
Hi there, Thanks for that, very appreciated, just one question? Without meaning to sound dumb (Which I probably will) how do I call your function? I don't usually deal with functions, I know I need to start though . Chris On Sunday, September 21, 2003, at 10:53 PM, Chris Payne wrote: Hi there everyone, Does anyone have any sample code whereby I can conntect to, and list the emails on my pop3 server for my own username/password? I tried something on the PHP.NET documentation but I get errors :-( Basically, I need to list all emails that I have in my inbox (POP3) so then I can insert selected data into a database backup (Hard to explain). Any help would be really appreciated :-) Regards Chris See the attachment, I believe it works but I'm not sure if it's a draft or the real thing since I wrote it a while ago. Andu -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php