johntwobeers Posted November 16, 2010 Share Posted November 16, 2010 Hi All, I am new to PHP so many apologies in advance if this turns out to be a pathetic question! I have been given source code to an aplication written in PHP which, in essence, only really does this; 1) allows user to select a file to upload and passes that file unchanged to another .php file for proccessing 2) proceesses that file (complicated routines) and produces output 3) redirect user to results page showing output Sounds simple and it is. I have installed it on my Ubuntu apache server and it works just perfect. The problem is, I have 20,000+ files which I want to process (and I'd rather not do it one at a time)! The idea I had was to pass these files into the .php code from the cmd line but all my attempts to do this thus far, have failed. My question then - "is it possible to do this from the cmd line or do I have to modify the code?" Thanks in advance - John Quote Link to comment https://forums.phpfreaks.com/topic/218805-running-apache-php-from-the-cmd-line/ Share on other sites More sharing options...
trq Posted November 16, 2010 Share Posted November 16, 2010 My question then - "is it possible to do this from the cmd line or do I have to modify the code?" You would likely need to modify the code. The idea of 'uploading a file' alone sounds like a job for the web server / browser. Quote Link to comment https://forums.phpfreaks.com/topic/218805-running-apache-php-from-the-cmd-line/#findComment-1134841 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.