Solved

PHP extension dir

Posted on 2011-09-04
4
470 Views
Last Modified: 2012-05-12
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
0
Comment
Question by:luciliacoelho
  • 2
4 Comments
 
LVL 15

Expert Comment

by:ncoo
ID: 36480445
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
 
LVL 15

Expert Comment

by:ncoo
ID: 36480446
More information on short names can be found here: http://answers.google.com/answers/threadview/id/522710.html
0
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 36480779
The strongest recommendation is to put your files in directories without that problem.  "C:\PHP\ext" is what is recommended.
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 36481352
What DaveBaldwin said!

No points, please. ~Ray
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
This article discusses how to create an extensible mechanism for linked drop downs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now