Use local php.ini files
Posted by: earnan (---.hsd1.mn.comcast.net)
Date: September 18, 2007 09:11AM

How can I get my local php.ini files to be read in order to dynamically override some of the default php.ini settings?

Scenario:
I use my computer as a test box for two different websites.
As such, these sites have different code bases and, in particular, different INCLUDE files (some with the same name but the files are different).

For example, one include path may be C:/wamp/includes/projectA and another may be C:/wamp/includes/projectB.

I want to be able to tell one project to point to one set of INCLUDE files and another one to point to a different set.

In my production environments (LAMP), I have php.ini files in the main directory.

When I do that on my WAMPserver setup, the local php.ini files are ignored.

Any help would be appreciated.

Thank you.

Options: ReplyQuote
Re: Use local php.ini files
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: September 18, 2007 10:13PM

I have my websites hosted at 1and1.com, and they let users add custom php.ini files to their diretories to override their default php.ini setttings. for examle, if I wanted to change their default post_max_size setting from the default of 8M to 25M i just create a php.ini file with:

post_max_size = 25M

and upload it to my website and it would change the default 1and1.com php's post_max_size setting from 8M to 25M.

Unfortunately, i have no idea how they do this. so, this is beyond my abilities to help you.


CyberSpatium
----------------------
WAMP English Forum Admin

I have WAMP5 working with (for development use only):
Windows Vista Ultimate x64 (64 bit)
Kaspersky Internet Security Suite 7.0.x
Spyware Terminater 2.x
CounterSpy 2.5.x


Need help? Check out my [url=http://forum.wampserver.com/read.php? f=2&i=12300&t=12300][u][b]WAMP User Manual/Guide[/b][/u][/url] here!


[url=http://www.webdevnewbie.com][u][b]Web Development for Newbie's Blog[/b][/u] [/url] - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.


[url=http://www.clarifyloans.com][b][u]Clarify Loans[/u][/b][/url]
Mortgage and Home Loan Advice


[url=http://www.laxgo.com][b][u]LaxGo Web Directory[/u][/b][/url]
Powerful human edited web directory of quality, spam-free sites organized via a comprehensive category structure.

Options: ReplyQuote


Sorry, only registered users may post in this forum.