[vox-tech] Alternative to PHP Scripting
timriley at appahost.com
timriley at appahost.com
Tue Jul 12 09:45:05 PDT 2011
> -------- Original Message --------
> Subject: [vox-tech] Alternative to PHP Scripting
> From: "Richard S. Crawford" <richard at underpope.com>
> Date: Mon, July 11, 2011 2:08 pm
> To: "lugod's technical discussion forum" <vox-tech at lists.lugod.org>
>
>
> 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?
Are you doing something like this?
<?
exec( "ls -1", $results );
for ( $i = 0; $i < count( $results ); $i++ ) :
$sys_string = "winzip $results[ $i ] -o archive.zip";
system( $sys_string );
$sys_string = "rm $results[ $i ]";
system( $sys_string );
endfor;
?>
I would doubt that this would spawn httpd child processes.
>
> --
> Sláinte,
> Richard S. Crawford (richard at underpope.com)
> http://www.underpope.com<hr>_______________________________________________
> vox-tech mailing list
> vox-tech at lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech
More information about the vox-tech
mailing list