I have a php script that takes a csv file from an http post and converts it to and excel file and then moves it to a different directory.
Is there an easy way to send the file to it from the command line instead of over http?
I have php-cli working, and have been searching everywhere. All I need to do is pass the csv to my php script from the command line like...
./convert.php < test.csv
I'm just not sure what to change in the code to make the script take the file from the cmd line instead of a post.
Thanks in advance...
Adam