You are here: Re: Cli error with imap_open() « PHP Programming Language « IT news, forums, messages
Re: Cli error with imap_open()

Posted by th.evensen@gmail.com on 12/28/06 13:23

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация