Re: PHP CLI question
| From: | Marek Kilimajer | Date: | Fri, 06 Jun 2003 09:04:30 +0000 |
| Subject: | Re: PHP CLI question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150462@lists.php.net to get a copy of this message | ||
Or as Jason noted at compile time.
Monte Ohrt wrote:
ok, so there are plenty of ways to work around it ;-) I guess my original question should be answered as such? "No, you cannot specify a different configuration file name other than php.ini, you must either hack the C code or supply a workaround at runtime." Monte On Thu, 2003-06-05 at 15:07, Mark wrote:Wrap it in a shell script or batch file. Something like: REM ---Start cli.bat--- ./cli/php.exe -c <<cli-php.ini location>> %1 %2 %3 %4 %5 %6 %7 %8 %9 @exit REM ---End cli.bat--- --- Monte Ohrt <monte@ispi.net> wrote:Hi Adam, I know it can be altered with a command-line switch, but it is the default that I want to change. I don't want to have to remember to set the -c flag everytime, or go back and change all my existing scripts. Monte On Thu, 2003-06-05 at 09:53, Adam Voigt wrote:===== Mark Weinstock mark_weinstock@yahoo.com *************************************** You can't demand something as a "right" unless you are willing to fight to death to defend everyone else's right to the same thing. *************************************** __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.comanswers eitherFrom a ./php -h:-c <path>|<file> Look for php.ini file in this directory The "|" means "OR", so logic would dictate you can point directly to the file with the -c option. On Thu, 2003-06-05 at 10:35, Monte Ohrt wrote:Hi Cal, I may be missing something, but I don't see how this pageoptions.of my questions. ini_set() is for setting configurationcode he writesMonte On Thu, 2003-06-05 at 09:23, Cal Evans wrote:http://www.php.net/manual/en/function.ini-set.php * Cal Evans * http://www.christianperformer.com * Stay plugged into your audience * The measure of a programmer is not the number of lines ofcertain settingsbut the number of lines he does not have to write. * ----- Original Message ----- From: "Monte Ohrt" <monte@ispi.net> To: <php-general@lists.php.net> Cc: <php-dev@lists.php.net> Sent: Thursday, June 05, 2003 9:22 AM Subject: [PHP] PHP CLI questionHi, A couple of questions: 1) Is there a way to make the CLI version of PHP ignoreacceleratorin the php.ini file? For instance, I don't want the ioncubework around isinvoked when using PHP from the command line. My currentand thisto use two separate init files, php.ini and php-cli.ini ...php.ini file,brings me to my second question: 2) Is there a way to specify a different name for thethe _path_ toapart from hacking php_ini.c ? It seems I can only change-- Monte Ohrt <monte@ispi.net> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpthe file, but not the filename itself. TIA Monte -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php