V
V
Vadim Stepanenko2018-03-20 00:23:05
PHP
Vadim Stepanenko, 2018-03-20 00:23:05

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

1 answer(s)
S
Stalker_RED, 2018-03-20
@Vadim1899

Command line options. Or keys.
Write in the console php --helpor 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 question

Ask a Question

731 491 924 answers to any question