John Davidson

php - Get original unparsed command line as a single string?

0 comments
Message:


Yes-or-no question: is the original unparsed command line as received by the php 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.



My Answer:
No, the original unparsed command line as received by the PHP executable is not available as a single string within the PHP program. The closest you can get is by using the $argv array and imploding it to create a single string.

Rate this post

4 of 5 based on 2056 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us