I have my php.ini as follows:
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
extension_dir = "C:\Program Files (x86)\PHP\ext"
I will distribuite my php application but I was wondering that not all users have their Windows OS on the default C:\, suppose they use another letter like Y:.
How could I change "automatically" to the correct path. Like:
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
extension_dir = "Y:\Program Files (x86)\PHP\ext"
I can't go to every computer and change the default settings. So is there a way to do this by not changing it directly?
It is also known as extension_dir . The picture below is the screen shoot of the php info display and the portion explaining the extension directory is shown. The php.ini file located inside windows folder ( or inside php folder ) can be edited to change the extension directory location.
As mentioned, the Configuration file path is the default one of the PHP.ini files. The Loaded Configuration File section applies when your PHP installation is used as a module. In GoDaddy servers, the PHP.ini file is usually located in /web/config/php.ini. The .ini extension might be followed by the PHP version.
The Loaded Configuration File section applies when your PHP installation is used as a module. In GoDaddy servers, the PHP.ini file is usually located in /web/config/php.ini. The .ini extension might be followed by the PHP version.
; Enables or disables PHP file modification checking. Should be "1" ; for enabling or "0" for disabling. You should set it to "1" if you want ; to recompile PHP files after modification. Default value is "1". ; Determine which PHP files must be cached.
This seems to use ext
relative to the PHP directory itself:
extension_dir = "ext"
I.e. it should be irrelevant what drive or path PHP is installed on, as long as the extensions are in the ext directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With