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
868 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Session time out quickly. 6 53
How to remove a section of the main menu from Magento 1.9.3 3 64
php output utf-8 problem 6 50
phpmyadmin memory error 55 91
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

737 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