Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question