Jump to content

Running Apache-PHP from the cmd line


johntwobeers

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/218805-running-apache-php-from-the-cmd-line/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.