Hi, I have a pretty simple question.
Is it possible to pass arguments to php if you're running it from command line instead of in a browser? Like:
# /usr/local/bin/php test.php Hello
Or could you do something like
#/usr/local/bin/php test.php?arg=He llo
(I tried the later and it didn't work but maybe I did something wrong.)
Is it possible to pass arguments to php if you're running it from command line instead of in a browser? Like:
# /usr/local/bin/php test.php Hello
Or could you do something like
#/usr/local/bin/php test.php?arg=He llo
(I tried the later and it didn't work but maybe I did something wrong.)
Comment