Jump to content

php.exe Unabe to Locate Component


Recommended Posts

Running PHP5 on XP.

All ext's uncommented in php.ini

include path="c:\Program Files\PHP\ext" in php.ini

Yet when I try to execute a php script, php.exe cannot locate php_mbstring.dll or any other req'd extension in the \ext folder.

I have uncommented all the mbstring attributes in php.ini and changed the language property from Japanese to All.

Does anyone have a solution to this? Or might there may be something I may have overlooked?

 

RPJD

Link to comment
Share on other sites

The include_path directive has nothing to do with extensions, it is the path php searches when you include files.

 

If your trying to run cli scripts, make sure your actually changing the right php.ini. It is usually a different one to that used by mod_php (apache).

 

Other than that, I can't be of much more help as I don't use windows.

Link to comment
Share on other sites

Only enable a few extensions at a time don't enable every single extension. Some extensions listed within the php.ini rely upon external libraries for example php_mysql.dll requires a library called libmysql.dll which is located within PHP's installation folder (C:/Program Files/php). PHP doesn't check for these libraries where it has been installed. Instead it searches for these in key locations, these being within the C:/WINDOWS or C:/WINDOWS/SYSTEM32 folders or the Windows Registry or the Windows PATH environment variable.

 

I always find it best to add PHP to the PATH. Rather than having to copy extensions/php libraries all over the place, doing so can cause problem when upgrading PHP. Adding PHP to PATH will allow PHP to access itself and so it can search for required libraries/files it'll need when starting up. You can readup on how to add PHP to the PATH here.

 

You should not need to modify the include_path, the default setting should be ok.

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.