Cli error with imap_open()

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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 /.

"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

Re: Cli error with imap_open()

Solved it. Changing the path to the php cli did the trick

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

Quoted text here. Click to load it

Site Timeline