I have a PHP script named "scipt" and a textfile called 'data.txt'. Right now I can execute script, but then I need to type in "data.txt". Is there any way to pass in data.txt as a parameter to "script" so I can run this thing in one line automated?
Right now I'm typing:
php script {enter} // script runs and waits for me to type filename
data.txt {enter}
... executes
Ideally it would look like:
php script data.txt {enter}
...executes
I'm doing this all from the PHP command line. Cheers :)