Solved

Fatal error: Call to undefined function pop3_open() in C:\www\webroot\pop3_connect.php on line 9

Posted on 2006-11-23
2
861 Views
Last Modified: 2013-12-13
Hi Experts,

I've got Windows XP Pro with Apache installed. I'm wanting to parse through some emails so am attempting to connect using POP3 - though not got very far.

I've downloaded the PHP_Pop3.dll and put it in the c:\www\PHP5\ext folder (which is referenced in the php.ini) and then uncommented it in the php.ini extensions section - but i'm getting the above error with my below code


<?php
$username = "user";
$password = "pass";
$server = "tcp://192.168.0.40:110";      
$session = pop3_open ($server, $username, $password);      
// Retrieve the number of messages available
$message_count = pop3_get_message_count ($session);
echo "Message count: $message_count\n";
?>

In the phpinfo.php It does not show up anywhere including additional modules section,

any help?

Thanks!
0
Comment
Question by:uberseven
2 Comments
 
LVL 48

Accepted Solution

by:
hernst42 earned 500 total points
ID: 18006407
better use the imap extension (which can also handle pop3 account). http://de3.php.net/imap I'vew never heard of an pop3 extension and if that extension is compatible with php5.
0
 
LVL 5

Expert Comment

by:burningmace
ID: 18008332
Check the following:

* http://wiki.cc/php/POP3
* http://php.net/imap

I would suggest using the included IMAP functions. This may seem odd, but trust me. A quote from the PHP.net website:
"These functions are not limited to the IMAP protocol, despite their name. The underlying c-client library also supports NNTP, POP3 and local mailbox access methods."
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now