Brian W Posted February 27, 2009 Share Posted February 27, 2009 the company I work for just got a new client and their website uses all short tags. I do not really want to open the entire server up for using short tags, so I was going to just use a php.ini in the scripts directory which enables the short tags. But, I added the copy of the ini and changed the value to on for short tags and restarted the IIS, but no effect. phpinfo tells me it's still grabbing the copy from c:\php System info: Configure Command- cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" "--disable-zts" "--disable-isapi" "--disable-activescript" "--with-extra-includes=C:\Program Files (x86)\Microsoft SDK\Include;C:\PROGRA~2\MICROS~2\VC98\ATL\INCLUDE; C:\PROGRA~2\MICROS~2\VC98\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\MFC\INCLUDE" "--with-extra-libs=C:\Program Files (x86)\Microsoft SDK\Lib;C:\PROGRA~2\MICROS~2\VC98\LIB;C:\PROGRA~2\MICROS~2\VC98\MFC\LIB" Other configuration info Server API CGI/FastCGI Virtual Directory Support disabled Configuration File (php.ini) Path C:\Windows Loaded Configuration File C:\php\php.ini I've been reading through the documentation and found that I can go into command line and run some -c argument to tell it to look for the ini in the specified directory, but can not seem to figure out how to even get the command line to do anything! do I just open php-cgi.exe ? if so, its not working, it won't respond to any commands... not even "php -v" I aslo found something about going into the registry and changing some value, I don't feel comfortable changing the registry stuff unless it is absolutely necessary. Thanks for any input. Quote Link to comment https://forums.phpfreaks.com/topic/147204-ini-in-script-directory/ Share on other sites More sharing options...
PFMaBiSmAd Posted February 28, 2009 Share Posted February 28, 2009 This should help with setting up a per site configuration under IIS - http://www.phpfreaks.com/forums/index.php/topic,235351.msg1094169.html#msg1094169 Quote Link to comment https://forums.phpfreaks.com/topic/147204-ini-in-script-directory/#findComment-773007 Share on other sites More sharing options...
Brian W Posted March 2, 2009 Author Share Posted March 2, 2009 Thank you, PFMaBiSmAd It looks like a pain in the rear to add sites, but It's not the worse run-around to be invented by IIS. It said that the technique was figured out at GoDaddy, I'm surprised because they give you an option, Linux (PHP & mySQL) or Microsoft (ASP & SQL Server). Quote Link to comment https://forums.phpfreaks.com/topic/147204-ini-in-script-directory/#findComment-774698 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.