PHP extension dir

Everytime I nedd to change my PHP extension file localtion I have to amend php.ini, namely the following lines:
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
; extension_dir = "ext"
extension_dir = "C:\Myapplication\WBS\php\ext\"

Whenever the "Myapplication" Directory has spaces between the path, for example "Program Files"  PHP can´t reach the directory where the extensions reside.
Can anyone give some clue to solve this?
Kind regards
Lucilia
luciliacoelhoAsked:
Who is Participating?
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
The strongest recommendation is to put your files in directories without that problem.  "C:\PHP\ext" is what is recommended.
0
 
ncooCommented:
You need to generate Windows Short File Names:

http://support.microsoft.com/kb/142982

Open a CMD promt in Windows and type:

dir *. /x

This will give you the short names.

For example, "program files" becomes "PROGRA~1"

15/05/2011  11:47    <DIR>          PROGRA~1     Program Files
0
 
ncooCommented:
More information on short names can be found here: http://answers.google.com/answers/threadview/id/522710.html
0
 
Ray PaseurCommented:
What DaveBaldwin said!

No points, please. ~Ray
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.