Re: Re: PHP & Parsing Text Files

From: Date: Thu, 08 May 2003 08:10:12 +0000
Subject: Re: Re: PHP & Parsing Text Files
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-146798@lists.php.net to get a copy of this message
At 09:32 08.05.2003, Tom Smith said: --------------------[snip]-------------------- >In a nutshell, this is what I want to accomplish: > >1) The user goes to the web page (a given ;-) ) >2) He'd select the PS/PDF document to fax. >3) He'd specifiy the CSV file containing the fax numbers to pass to the >server. >4) He'd select the specific options to pass to SENDFAX--killtime, >sendtime, etc. >5) He'd click Send Fax (or whatever). > >When he submits the fax, the PHP script would parse the fax numbers from >the text file and build the SENDFAX command to then execute on the >server--it would need to do this for each fax number it receives from >the CSV file. --------------------[snip]-------------------- When running this script directly from the webserver/web page you might run into timeout problems (by default config apache will kill any page or script that's 30 seconds around without being finished). I'd simply create some list entry containing the necessary elements, and have a cron job routinely check this list and execute whatever necessary. Maybe it would send a mail to the originator that all faxes have been transmitted, or some error reports, after all jobs have been finished. Note this will only be necessary if SENDFAX doesn't its own queueing/backend processing (I've got no no clue about sendfax in detail ;->) -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#146798) next »