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
855 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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

763 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

10 Experts available now in Live!

Get 1:1 Help Now