RedOne Posted January 7, 2009 Share Posted January 7, 2009 Hi all, Quite a simple question really... (hope it's as easy to resolve) First, the situation is as follows... I have a test file, "test.php" which runs phpInfo. 1) When I run phpinfo from Internet Explorer then it shows... Configuration File (php.ini) Path C:\WINDOWS <- I read everywhere that this is fine Loaded Configuration File C:\Program Files\phpDesigner\PHP\php.ini <- Correct (phpDesigner is the PHP editor we use) 2) If I run the exact same file from within phpDesigner then it gives me the exact same settings as above - as expected. 3) If I go to that path "C:\Program Files\phpDesigner\PHP\" and type in "pear list" then I get : INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET: ========================================= PACKAGE VERSION STATE Archive_Tar 1.3.2 stable Console_Getopt 1.2.3 stable MDB2 2.4.1 stable MDB2_Driver_ibase 1.4.1 stable PEAR 1.7.2 stable Structures_Graph 1.0.2 stable Now, the question / problem... From phpDesigner all of these (MDB2, Interbase etc.) are picked up correctly (displayed in the phpInfo) and work 100% From Internet Explorer, none of them are picked up. It's the same php.ini file!!! What am I missing? I'm not that hot on PHP yet so I'm hoping it's an installation issue that I missed somewhere. Please help! Quote Link to comment https://forums.phpfreaks.com/topic/139825-phpinfo-question/ Share on other sites More sharing options...
RedOne Posted January 7, 2009 Author Share Posted January 7, 2009 Already solved. For anyone in the future that has this problem... ALL paths in your PHP.INI file must be absolute paths. No relative paths. Apache sees a relative path in the PHP.INI file as relative to the Apache folder and not to the PHP.INI folder. In my case it didn't pick up the modules because of the EXT folder being relative... extension_dir = "./ext/" Setting it to extension_dir = "c:/Program Files/blahblah/PHP/ext/" sorted the issue. Quote Link to comment https://forums.phpfreaks.com/topic/139825-phpinfo-question/#findComment-731631 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.