473,480 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Cli error with imap_open()

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
1 3204
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
8314
by: James Turnbull | last post by:
I am having troubles with some imap_open() I am using the following code: <?php $mbox = imap_open ("{mailserver:993/imap/ssl/no-validatecert}INBOX", "user", "password"); echo...
0
915
by: Jaysheel Mehd | last post by:
I will be running the script with imap_open() on the IMAP server as root. Can I run imap_open() without entering the password for a user. Is there any other way as an administrator, to open user's...
2
2070
by: Rodney Pont | last post by:
I'm trying to use imap_open to get news from a server that requires a user name and password. I'm using $nntp = imap_open("{".$newsserver."/nntp:".$port."}".$newsgroup, $newsuser, $newspass,...
0
2294
by: Dennis Biletsky | last post by:
Hi, I have a problem to connect mailbox using IMAP_OPEN. There is no problem to connect using standard port such as imap_open ("{10.0.0.0:143}INBOX", "user", "pass"), but I have a problem...
0
1723
by: Hartt | last post by:
hi,all I have written a php scripts to test my mail server which built with Cyrus-imapd 2.2.3 OpenLDAP Postfix. <?php...
2
3461
by: amiliv | last post by:
I'm attempting to connect to Cyrus IMAP server using imap_open() function. The connection is sucessfull, however there is a delay and warning message about "rsh failure". I added /norsh flag to...
0
1567
by: R. Pelizzi | last post by:
hello, i'm getting a very strange behaviour with imap_open. My code does: $stream = imap_open("{{$_SESSION}:110/pop3}INBOX", $_SESSION, $_SESSION); then checks if that stream is valid... well,...
1
2789
by: joshfeingold | last post by:
I have a CRM web application that checks users' email accounts and downloads them to the application. One of the users has a gmail account and I am trying to get access to this account using the...
4
19978
by: qccitchy | last post by:
G'day, I am so stuck I am pulling what's left of my hair out. Any gurus out there that can help me with this would be greatly appreciated. I am relatively new to php and am trying to connect...
0
7041
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7043
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6737
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5336
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4776
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4481
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2995
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.