Page 1 of 1

FATAL ERROR : imap_open() undefined

PostPosted: 06. May 2011 01:00
by poor_schmuck
Hello,

I have Lampp/Xampp for Linux (Fedora 9), v1.7.0 installed. It has PHP v5.2.8 running, and php.net says imap_open() was available as far back as PHP 4. Why then am I getting an error when I call imap_open(...) saying:

PHP Fatal error: Call to undefined function imap_open() in (sourcefile)...

I should not require an XAMPP upgrade, for this, as I have a version of PHP running that should support this. How do I tell specifically why I'm getting this, and then how do I specifically fix it? I could not find this problem within the forums, under Linux, although a search revealed some imap_open() troubles elsewhere-- just not like this.

Please, please help this poor schmuck coder out :P

Re: FATAL ERROR : imap_open() undefined

PostPosted: 06. May 2011 13:09
by Altrea
is there any imap extension commented in your php.ini?

Re: FATAL ERROR : imap_open() undefined

PostPosted: 06. May 2011 15:08
by poor_schmuck
Altrea wrote:is there any imap extension commented in your php.ini?


In php.ini, at the top, it shows this:

Configure Command './configure' '--prefix=/opt/lampp' '--with-apxs2=/opt/lampp/bin/apxs' '--with-config-file-path=/opt/lampp/etc' '--with-mysql=/opt/lampp' '--enable-inline-optimization' '--disable-debug' '--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-dbase' '--enable-discard-path' '--enable-exif' '--enable-filepro' '--enable-force-cgi-redirect' '--enable-ftp' '--enable-gd-imgstrttf' '--enable-gd-native-ttf' '--with-ttf' '--enable-magic-quotes' '--enable-memory-limit' '--enable-shmop' '--disable-sigchild' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-wddx' '--enable-yp' '--with-ftp' '--with-gdbm=/opt/lampp' '--with-jpeg-dir=/opt/lampp' '--with-png-dir=/opt/lampp' '--with-freetype-dir=/opt/lampp' '--without-xpm' '--with-zlib=yes' '--with-zlib-dir=/opt/lampp' '--with-openssl=/opt/lampp' '--with-expat-dir=/opt/lampp' '--enable-xslt=/opt/lampp' '--with-xsl=/opt/lampp' '--with-dom=/opt/lampp' '--with-ldap=/opt/lampp' '--with-ncurses=/opt/lampp' '--with-gd' '--with-imap-dir=/opt/lampp' '--with-imap-ssl' '--with-imap=/opt/lampp' '--with-gettext=/opt/lampp' '--with-mssql=/opt/lampp' '--with-sybase=/opt/lampp' '--with-interbase=shared,/opt/interbase' '--with-mysql-sock=/opt/lampp/var/mysql/mysql.sock' '--with-oci8=shared,instantclient,/opt/lampp/lib/instantclient' '--with-mcrypt=/opt/lampp' '--with-mhash=/opt/lampp' '--enable-sockets' '--enable-mbstring=all' '--with-curl=/opt/lampp' '--enable-mbregex' '--enable-zend-multibyte' '--enable-exif' '--with-bz2=/opt/lampp' '--with-sqlite=shared,/opt/lampp' '--with-libxml-dir=/opt/lampp' '--enable-soap' '--enable-pcntl' '--with-mysqli=/opt/lampp/bin/mysql_config' '--with-mime-magic' '--with-pgsql=shared,/opt/lampp/postgresql' '--with-iconv' '--enable-dio' '--with-pdo-mysql=/opt/lampp' '--with-pdo-pgsql=/opt/lampp/postgresql' '--with-pdo-sqlite' '--with-ming=shared,/opt/lampp'

In php.ini, under the 'IMAP' section, it shows this:

imap
IMAP c-Client Version 2004
SSL Support enabled

Those are the only two places it lists the term 'imap'.

poor schmuck