Jump to content

phpInfo question


Recommended Posts

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!

Link to comment
Share on other sites

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.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.