r/PHPhelp • u/Alternative_Place658 • Feb 20 '25
Help this keep happening
https://codepen.io/Coyne-Milzon-L/pen/qEBZWyK
I attached the image and also the php.ini itself I tried several things including installing and reinstalling php hope anyone can help thanks
2
Upvotes
4
u/colshrapnel Feb 20 '25
I am not sure what do you mean with "installing php" but please follow these steps:
;symbol on the line 928Would it work?
1
u/eurosat7 Feb 20 '25 edited Feb 20 '25
Reading the image you have posted it clearly states that you lack the file of the mysqli extension.
It even tells you it tries to load c:\php\ext\mysqli.dll
So you might want to install php-mysqli
1
u/Big-Dragonfly-3700 Feb 20 '25
What is your overall goal? If you are trying to setup a localhost (web) development system, go with one of the all-in-one xAMP systems.
When you run php via the Command Line Interface (CLI) it is running in a different environment than when it is invoked by a web server and anything you might accomplish via the CLI won't help you with getting this to work with a web server.
1
u/Klorinmannen Feb 20 '25
It looks like you have a default or standard installation of php which does not include all extensions, if any. You have to add or install these as your project needs them.
If you take a closer look at your imgur-picture you'll come to the understanding that the methods prefixed "mysqli_" from your source code or php script file you are trying to run is dependent on the dynamic library named as 'mysqli'.
This dynamic library, 'mysqli', is the extension you have choosen to include from your php.ini file. However enabling it in your php.ini file does not mean it is installed on your system.
To resolve your problem the dynamic library (extension) named 'mysqli' has to be installed as well on the same system together with your php installation.
1
u/SouthernEmergency416 Feb 22 '25
What is this used for ? New to this