PHP из командной строки
338 сообщений
#15 лет назад
Добрый день.Сижу, переношу сайт на новый фреймворк. Разбираюсь со скриптами, запускаемыми по крону.
Практически все имеют параметр в команде запуска php -q.
Мануал и гугл порно молчат про данный параметр.
Может кто сталкивался с ним? что оно вообще такое?
292 сообщения
#15 лет назад
Man php говорит, что такого нет. Есть предположение, что это quiet в windows
1322 сообщения
338 сообщений
#15 лет назад
Цитата ("vovan_f"):Надо было в простом искать
простойвыдает тоже самое

но там не виндоус. я весь в непонятках.
205 сообщений
#15 лет назад
Цитата:user@localhost:~$ php -h
Usage: php <file>
php -r <code>
php -R <code>
php -F <file>
php --
php -a
-a Run as interactive shell
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f <file> Parse and execute <file>.
-h This help
-i PHP information
-l Syntax check only (lint)
-m Show compiled in modules
-r <code> Run PHP <code> without using script tags <?..?>
-B <begin_code> Run PHP <begin_code> before processing input lines
-R <code> Run PHP <code> for every input line
-F <file> Parse and execute <file> for every input line
-E <end_code> Run PHP <end_code> after processing all input lines
-H Hide any passed arguments from external tools.
-s Display colour syntax highlighted source.
-v Version number
-w Display source with stripped comments and whitespace.
-z <file> Load Zend extension <file>.
args... Arguments passed to script. Use -- args when first argument
starts with - or script is read from stdin
--ini Show configuration file names
--rf <name> Show information about function <name>.
--rc <name> Show information about class <name>.
--re <name> Show information about extension <name>.
--ri <name> Show configuration for extension <name>.
имхо он ничего не значит
132 сообщения
#15 лет назад
Цитата ("ypeskov"):гугл порно молчат про данный параметр.
молчит говорите?
google: php.exe "-q"
на любой линк переходите, и видете:
The -q flag suppresses HTTP header output.
As long as your script itself does not send anything to stdout,
-q will prevent cron from sending you an email every time the script runs.
For example, print and echo send to stdout.
Avoid using these functions if you want to
prevent cron from sending you email.
The -q switch suppresses any HTTP headers that PHP might otherwise create.
-q Quiet-mode. Suppress HTTP Header output.
берете переводчик, и переводите на свой язык......
=)
338 сообщений
#15 лет назад
Всем спасибо 
но ксати действительно мне гугл внтного ничего не выдавал
правда если добавить слово крон, то уе лучше

а в чистом виде поиск по php -q parametr ничего не дает.
upd
тем более как показало чтение, сейчас необходимости в в явном указании "-q" нет, посему и плохо находится.