Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.