l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
December 2: Social gathering
Next Installfest:
TBD
Latest News:
Nov. 18: Club officer elections
Page last updated:
2011 Jul 12 11:01

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Alternative to PHP Scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Alternative to PHP Scripting



On Tue, 12 Jul 2011, Gandalf  Parker wrote:

> On Mon, 11 Jul 2011, Richard S. Crawford wrote:
>
>> I've been trying to use PHP to create a backup script that would read
>> filenames from a directory, then copy those filenames into a .zip file, then
>> delete the original files. I wrote a PHP script to do this, but it seemed to
>> spawn so many httpd child processes that the server load skyrocketed and
>> users weren't able to get to our website.
>>
>> So my question is, what other options do I have for performing this sort of
>> task?
>
> Im not seeing what the web interfacing is. Did you want to kick off this
> script from the web? You dont have access to a cron file to have it run
> at set times?
>
> But I think any language will handle what you want. Personally Id just
> write it in shell script. It doesnt sound like it needs anything beyond
> that. Or if it did then Id write it in Basic. Whatever you know.
>
> Gandalf  Parker

   I've solved a similar problem by running the php program as a daemon 
launched by cron and using a web page to give it work by creating a file 
in the /tmp directory. Of course the web page still has to run php to 
create the file.

Chris
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.