i want to parse the email headers and attachments from the dummy email ( i have text files collections). My hosting account is in Bluehost.com. I used pecl mail parse function to parse the header. When i upload the file and execute it is saying
Fatal error: Call to undefined function mailparse_msg_create()...
I asked bluehost guy they are saying pecl is already enabled on server.
How can i solve this issue. Please help me. My English is not good, hope you all will help me.
Just because you have PECL installed doesn't mean you have the correct extension installed.
Answer: You need to install the Mailparse PECL extension. See http://pecl.php.net/package/mailparse
Related
Hi stackoverlow community
My goal is to install Symfony.
Therefore I have installed Xampp and the Composer. Unfortunately I do not fulfill all requirements. As soon as I start the following path, e.g. http://localhost:8000/check.php
Then I get the following error message:
"Install and/or enable a PHP accelerator (highly recommended)."
I took a screenshot of the error message. You can find it in the attachment. You can also find a detailed description of the problem as Youtube video.
https://youtu.be/XM0Rv0eVI7Q
To solve the problem, I downloaded the file php_apcu.dll and copied it into the folder: C:\xampp\php\ext. In the PHP.ini file I added the line extension=php_apcu.dll. Unfortunately this did not help.
Can someone tell me how I can solve the problem so that the error message disappears "Install and/or enable a PHP accelerator (highly recommended)".
Kind regards, Juergenenter image description here
I'm using PHP in combination with Xampp and have installed the extension stats for Windows (https://pecl.php.net/package/stats/2.0.3/windows). Phpinfo says everything works fine. Stats is enabled. Nevertheless I am getting the error message
Uncaught Error: Call to undefined function stats_rand_gen_ibinomial(),
when I am using the function stats_rand_gen_ibinomial, which is documented here https://www.php.net/manual/en/function.stats-rand-gen-ibinomial.php.
Have you got experiences with these extension?
In php.ini i have added the following line: extension=stats
My first thought was that you need to restart the apache but the output in the screen seems to be be ok, then I executed ">php -m" and the extension was listed but when I run a script calling stats_rand_gen_ibinomial() it fails(exactly what you describe).
I download the source code 2.0.3 and 2.0.0 and the method is not included!!, the same with 1.0.5 and 1.0.4. The last version when the method does exist is : 1.0.3.
You can download all the versions here https://pecl.php.net/package/stats and look for the last one with that method definition. But the conclusion is that for some reason that method is not included . I ignore the reason.
Currently, I am getting an error
fatal error: undefined function ldap_connect()
I am assuming this is because I do not have the library php_ldap.dll, but I am unsure how to even obtain it. Basically, I'm trying to get it so that ldap driver appears on the phpinfo page.
Please do not mark this question as duplicate: Fatal error: Call to undefined function: ldap_connect(). This solution works for Linux and Windows, but does not work on Mac OS.
Any input would be appreciated.
When you are on a Mac php_ldap.dll won't help you as that's a windows file.
If you are using MAMP you should have a look at the MAMP documentation to see how to enable other extensions. IIRC there is a possibility to enable extensions in the preferences somewhere but I might be wrong or that has changed since I looked the last time. If there is that possibility, you should be able to enable the LDAP extension there.
As this is a new question I assume it's fine to create a new fresh question?
My previous question is here:
imageantialias call to undefined function error with GD installed
Markus helped me figure out the problem, I have since contacted the clients and set up a VPS for them, I have transferred the files and database and everything is running fine. Apart from the same error, only this time, I'm getting a different error;
Fatal error: Call to undefined function imagecreatetruecolor() in /home/public_html/admin/library/functions.php on line 232
I assume this is relating to the same thing and it required a php recompile? Could someone please give me some instructions on how to do a php recompile on Mac OS X, I tried the PHP docs but I can't seem to understand how it works.
Many Thanks!
Make sure you have the correct version of PHP and GD installed. From the PHP manual:
Depending on your PHP and GD versions
this function is defined or not. With
PHP 4.0.6 through 4.1.x this function
always exists if the GD module is
loaded, but calling it without GD2
being installed PHP will issue a fatal
error and exit. With PHP 4.2.x this
behaviour is different in issuing a
warning instead of an error. Other
versions only define this function, if
the correct GD version is installed.
i need imap function to do a login test, so i can perform a single sign on/single log in like this stackoverflow do with email accounts. when i try the imap_open functions in windows, i got Fatal error:undefined function, but in ubuntu, i don't get anything. any codes bellow the function is not working, but there is no error. can anyone help me?
in ubuntu, i've installed php5-imap,
in windows. i've removed the ";" in front of the extension=imap.dll, i guess thats the thing..
thanks before,,
I've found my mistakes.
I restarted my apache in a wrong way after installing PHP IMAP in ubuntu and removing the ';' in Windows.
thanks for reading.