Skip to content
Advertisement

Running PHP in Windows: how to fix “PHP Startup: Unable to load dynamic library” issues?

I have determined path to php folder and trying to run some php file and getting this message from command line.

JavaScript

All libraries are open on php.ini file. I have checked them all. I am wondering why command line tries to run library in incorrect path like

JavaScript

Does it should be like

JavaScript

?

Advertisement

Answer

Open your php.ini file and set the following setting to a Windows file path:

JavaScript

On Windows, paths that point to something on a normal hard drive have to start with a letter and then a colon, like “C:“. Paths that start with a forward slash, /, are Unix-like paths, and will not work on Windows.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement