2

I recently saw this page: PHP cli command line safe_mode restriction

Where it is recommended to use the -d flag to override php.ini's safe mode setting like this:

/usr/bin/php -q -d safe_mode=Off /var/www/vhosts/path-to-your-php-file.php

I've been searching the net for cron man, php man, php flags etc and nowhere can I find the -d flag.

What is it?

Community
  • 1
  • 1
wbinky
  • 160
  • 1
  • 11

1 Answers1

9

It stands for an INI property.

-d foo[=bar]     Define INI entry foo with value 'bar'

For future reference, http://php.net/manual/en/features.commandline.options.php

Daniel A. White
  • 187,200
  • 47
  • 362
  • 445
  • +1 as its exactly as it shows if you type `man php` in unix, that's what I wanted to answer, but you were faster :) – mishu Jun 21 '12 at 12:11
  • 2
    lol.. that's one of the bad sides of SO.. maybe people should be forced to leave a comment when giving a down vote, not just suggested.. this is obviously wrong.. 7 votes up and one down.. – mishu Jun 21 '12 at 13:15