Answer the question
In order to leave comments, you need to log in
How to run php scripts from console?
Hello!
Tell me, please, for example, when I run the script in the console, I write: php -q c:/xampp/htdocs/site/server.php
What does this -q mean? It works just as well without it. I also saw they write -f, etc. What is it called so you can google it?
Answer the question
In order to leave comments, you need to log in
Command line options. Or keys.
Write in the console php --help
or look at the instructions on the site.
php.net/manual/ru/features.commandline.php
php.net/manual/ru/features.commandline.options.php
-f <file> Parse and execute <file>.
-q --no-header Тихий режим. Подавляет вывод заголовков HTTP (только для CGI).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question