-1

I am trying to run a PHP application on WAMP. The application uses mailparse. I have copied the php_mailparse.dll file into the PHP ext folder and added extension=php_mailparse.dll to php.ini

I am using PHP version 7.4.26, and have placed .dll in the ext folder for this version, and edited the .ini for this version. Have restarted WAMP and restarted PC. I used mailparse 3.1.2 downloaded from PECL but still mailparse is not recognised. Running windows 10 64 bit. Any idea what could be the cause of this issue?

enter image description here

Mr. J
  • 1,009
  • 2
  • 13
  • 33
  • Run `phpinfo()` and look for the line that tells you what ini file was loaded -- it might not be the same one you edited. – Alex Howansky Jan 19 '22 at 00:31
  • I ran that from the directory where my project is installed and I get `'phpinfo' is not recognized as an internal or external command, operable program or batch file.` – Mr. J Jan 19 '22 at 00:37
  • It's a PHP function. Put in in a *.php page and then view it through the web server. – Alex Howansky Jan 19 '22 at 00:39
  • Thank you, I see the problem now. It is a different .ini file being loaded by apache. – Mr. J Jan 19 '22 at 00:55

1 Answers1

0

As per this SO article this error is caused because I was editing the wrong .ini WAMP uses two .ini's one for CLI and one for the web

Mr. J
  • 1,009
  • 2
  • 13
  • 33