php - Get original unparsed command line as a single string?
Get the solution ↓↓↓Yes-or-no question: is the original unparsed command line as received by thephp
exectuable available to the PHP program as a single string in some way? I can fall back to imploding$argv
, but I would very much prefer to have the Real Thing.
Answer
Solution:
The PHP tag on stackoverflow is heavily used, but no previous answers provide what you need and no-one has come forward to say it's possible. I also can't find anything in the manual about it, or anywhere else. What you want is 99.99% likely to be impossible, not least because in 99.99% of cases it simply isn't useful.
I work on various programming languages and none of them can read their exact startup command, they just receive the arguments.
You would be better to amend or replace the script which launches your command so it's able to log the PHP command it runs, and/or it could restart the command whenever it fails.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: call to undefined function illuminate\encryption\openssl_cipher_iv_length()
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.