By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,929 Members | 634 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,929 IT Pros & Developers. It's quick & easy.

Cli error with imap_open()

P: n/a
Hi,
I've written a script that use the imap functions to check my accounts
for new messages. It works great from a server, but when trying to run
it from the command line I get the following error:

Fatal error: Call to undefined function: imap_open()
I'm on osX 10.4.8 with the Marc Liyanage php5 package from
http://www.entropy.ch/software/macosx/php/.

"php -v" outputs:
PHP 4.4.4 (cli) (built: Nov 1 2006 18:12:33)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

Dec 28 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Solved it. Changing the path to the php cli did the trick

$ which php
/usr/bin/php
$ export PATH=/usr/local/php5/bin:$PATH
$ which php
/usr/local/php5/bin/php

On Dec 28, 2:09 pm, "th.even...@gmail.com" <th.even...@gmail.com>
wrote:
Hi,

I've written a script that use the imap functions to check my accounts
for new messages. It works great from a server, but when trying to run
it from the command line I get the following error:

Fatal error: Call to undefined function: imap_open()

I'm on osX 10.4.8 with the Marc Liyanage php5 package fromhttp://www.entropy.ch/software/macosx/php/.

"php -v" outputs:
PHP 4.4.4 (cli) (built: Nov 1 2006 18:12:33)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
Dec 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.