Fileinfo functions not working in Xampp 1.8.2 - php

The fileinfo functions from php http://php.net/manual/en/ref.fileinfo.php are not working when I try to use the finfo_open and finfo_file functions in a php script where I will let users upload a file. Although php's site says that the functions will work if php's version is greater than or equal to 5.3.0 and I have xampp 1.8.2 which has php 5.4.16, it still produces a fatal error as --- Fatal error: Call to undefined function finfo_open() in ..... ---. I am using these functions in the procedural way not in object-oriented way and I am using eclipse helios as my php editor. Any solution to this problem?

Go to php.ini (or simply from xampp window, near Apache -> Config -> php.ini)
Find line:
;extension=php_fileinfo.dll
and uncomment it

Related

Call to undefined function imagewebp()

I am wondering why i get this error. I updated my php from 5.6.22 to 5.6.40 and now i get this error. This was working fine in previous version but suddenly it turns out like this.
Fatal error: Call to undefined function imagewebp()
Also if try var_dump(function_exists('imagewebp')); it gives false now.
This is my current PHP version
This is the GD Module
So what has to be done to re-enable it in my server.
I have a Cent-OS instance in AWS.
The WBMP Support => enabled is not enough)
You have to add --with-vpx-dir= to your configure line or --with-webp-dir for PHP 7.0+
For me
PHP: 8
I simply uncommented the extension gd and the function worked
extension=gd
in my php.ini file

JpGraph Error: 25001 This PHP installation is not configured with the GD library

I have a PHP application that is running under WAMP and using JPGraph. It all works fine. I am trying to now deploy the application on a production web server which, rather than running WAMP, runs native Apache and PHP, and am receiving the following error:
Notice: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' in C:\Program Files\Adaptive\webPortal\models\jpgraph\jpgraph_errhandler.inc.php on line 282
JpGraph Error: 25001 This PHP installation is not configured with the GD library. Please recompile PHP with GD support to run JpGraph. (Neither function imagetypes() nor imagecreatefromstring() does exist)
Now obviously I have ran up phpinfo() and, as expected, there is no GD enabled on the production server. The only difference I can see is in the version of PHP; WAMP is bundled with PHP 5.4.12 and the production server has installed PHP 5.3.29, so a slightly earlier version. The issue is this has to run on Windows, and I can't find a Windows PHP installation for any version greater than 5.3.29.
However, I see no reason why I can't just enable GD on the production server. BUT:
The extension=php_gd2.dll line is uncommented in php.ini
php_gd2.dll exists in \PHP\ext
So... yeah. I'm kind of stuck haha. Can anyone help? Thanks in advance!

How to install new extension in Apache

Hi friends i am using Apache 2.4.4 (Win64), PHP 5.4.12. I need to install a new extension in it. I have a dll file of that extension i.e. pspell.dll. How should i make it work in my Apache? I have copied this dll to apache/Apache2.4.4/bin/. And enabled extension=php_pspell.dll in apache/Apache2.4.4/bin/php.ini. Restarted my apache but still getting no sign of this extension in phpinfo();. Please tell me what should i do?
Also getting this error:
Fatal error: Call to undefined function pspell_new()
Check server logs to see where is the problem.
Usually it's because file can't be found on disk or DLL file is not compatible with PHP - both PHP and DLL have to be compiled for same architecture, with same compiler and thread safety options.

Install ffmpeg in windows 7 x64

I have a problem to install ffmpeg, I tried several tutorials but did not.
I tried using the dll and executables but could not get the result is always.
"Fatal error: Call to undefined function dl ()"
I went on the official website and downloaded the dlls did the procedure in playing in system32 and php / ex and declared the extension in php.ini but does not work.
I am using the version of php 5.3.13.
I was thinking it was the version of php what do you think? I'm using WampServer observation
I used the ffmpeg-20130318-git-519ebb5-win64-static.7z from http://partisans9.alamaree.com/chan-5973786/all_p2.html
It is working, though I used it through command line for file format conversion only.

Getting PHP pspell function to work.

I am trying to use the pspell function in my php application I am developing however when I run my code I get the error: "Call to undefined function pspell_new()". I am using an Apache 2.4 server on my localhost to run the application. Nothing I do seems to fix the problem. I have downloaded the aspell/pspell module with a "en" dictionary. I added the pspell-15.dll and aspell-15.dll to my System32 folder and I enabled the extension=php_pspell.dll line in my php.ini file and restarted the apache 2.4 service. What am I missing here because nothing seems to work? Thanks.
As of php 5.3. Pspell is no longer supported/bundled. Instead you can use the enchant which is bundled by default in 5.3.

Categories