A
A
Anton2015-04-01 00:35:13
PHP
Anton, 2015-04-01 00:35:13

How to pass GET parameter to PHP script from under exec?

Hello!
I execute this command with a PHP script:
nohup /path/to/file.php > /dev/null 2>&1 & echo $!
All is well. But if you add this to file.php?get=param , then an error occurs, saying that there is no such file.
In general, I'm interested in how you can pass a GET parameter to file.php?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
OnYourLips, 2015-04-01
@hummingbird

then an error occurs, they say there is no such file.
Because it doesn't exist.
In general, I'm interested in how you can pass a GET parameter to file.php?
No way. GET parameters do not exist in CLI scripts.
But there is $argv .

A
Alexander Makarov, 2015-04-01
@SamDark

The console is not the web. There is no HTTP and GET in the console.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question