Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #19090

Re: Call to undefined function imap_open()

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: Call to undefined function imap_open()
Date Sat, 3 Sep 2022 11:45:56 +0200
Lines 33
Message-ID <jngm2lF1adpU1@mid.individual.net> (permalink)
References <tev3if$1pn3$1@gioia.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace individual.net oGCqmwDJfbUJGO0+gViUTg2FfZeXk34vfa5CxNW+VEjnp67PaO
Cancel-Lock sha1:344HAkAsDP6LXdsmP/l8/LzygfY=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0
Content-Language en-US-large
In-Reply-To <tev3if$1pn3$1@gioia.aioe.org>
Xref csiph.com comp.lang.php:19090

Show key headers only | View raw


On 03/09/2022 10.34, Mark5320 wrote:
> $ php -r 'imap_open();'
> PHP Fatal error:  Uncaught Error: Call to undefined function imap_open() 
> in Command line code:1
> 
> I know, you have to install the appropriate extension (sudo apt install 
> SOMETHING).

sudo apt install php-imap

> But there is a special command (for Ubuntu 22.04.1) to establish 
> precisely (without going to google) what extension (package) should we 
> install?
> For example
> 
> $ php-owner-package imap_open
> imap_open() function it's included into package SOMETHING

No there ain't a tool to tell you to which extension a function may 
belong to.

As the extensions tend to have functions with the extension name, so 
that the common part of the functions name and search for it with

apt-cache search imap | grep php

and you would have a good chance to see the extension as part of the 
result, sure not all extensions do have this the uniformity in function 
names and not all are included in the official ubuntu/debian repository.

-- 
   //Aho

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Call to undefined function imap_open() Mark5320 <xxx@ma.rk> - 2022-09-03 10:34 +0200
  Re: Call to undefined function imap_open() "J.O. Aho" <user@example.net> - 2022-09-03 11:45 +0200
    Re: Call to undefined function imap_open() Mark5320 <xxx@ma.rk> - 2022-09-03 13:01 +0200
      Re: Call to undefined function imap_open() "J.O. Aho" <user@example.net> - 2022-09-03 13:30 +0200
        Re: Call to undefined function imap_open() Mark5320 <xxx@ma.rk> - 2022-09-03 15:00 +0200
          Re: Call to undefined function imap_open() Mark5320 <xxx@ma.rk> - 2022-09-03 15:05 +0200
            Re: Call to undefined function imap_open() "J.O. Aho" <user@example.net> - 2022-09-03 17:30 +0200
            Re: Call to undefined function imap_open() John-Paul Stewart <jpstewart@personalprojects.net> - 2022-09-03 15:08 -0400
              Re: Call to undefined function imap_open() Mark5320 <xxx@ma.rk> - 2022-09-05 11:23 +0200
  Re: Call to undefined function imap_open() Kristjan Robam <he12091983@gmail.com> - 2022-09-09 04:00 -0700
    Re: Call to undefined function imap_open() Arno Welzel <usenet@arnowelzel.de> - 2022-09-09 16:30 +0200

csiph-web