ID:               29794
 Updated by:       [EMAIL PROTECTED]
 Reported By:      amailer at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         *Directory/Filesystem functions
 Operating System: Windows
 PHP Version:      5.0.1
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

The simple answer is that you probably have a lot of files 
and the process of generating a zip file is rather slow. 
So, PHP terminates when the execution limit is reached. 


Previous Comments:
------------------------------------------------------------------------

[2004-08-22 22:04:43] amailer at gmail dot com

no comment (spelling mistake)

------------------------------------------------------------------------

[2004-08-22 22:00:27] amailer at gmail dot com

Description:
------------
Windows XP Pro [ test server ]
Apache 2
PHP 5 - FastCGI

Hello,
I am creating a script that will, take the given folder path and ZIP
it. It will also zip all it's subfolders and files.

I have got the script to create the subfolders correctly-- but when I
try to add the files, it takes for ever and just dies (execution time
error)
Fatal error: Maximum execution time of 30 seconds exceeded in
www/test/dir/explorer.php on line 34

Now, i tried changing the ini settings of the max execution time to
ini_set("max_execution_time", 1000);
1000 seconds, yet that doens't work.

The script works only with folders that have a small amount of files
and provided that the file sizes are small also.

If i run this script to zip a folder with many files (20+) and some 1
mb or more, the script make php use up to 98 CPU usage and yet not
work, the script then dies after some time leaving me with that error.

Shouldn't this be a bit more quicker in zipping files? I mean, it uses
so much of the CPU usage it lags my test server so much  (even with
manually zipping it's 10x faster then that)

Hope you guys can help,
Thank you

Reproduce code:
---------------
For the source code please visit:
http://amailer.sourceforge.net/explorer.phps

I cannot provide a link to view the script in action because it lags up
the server too much, sorry.

Expected result:
----------------
I want it to zip a folder with all it's subfolders and files, and save
it.

Actual result:
--------------
Fatal error: Maximum execution time of 1000 seconds exceeded in
C:\Program Files\Apache
Group\Apache2\htdocs\termix\SUBDOMAIN\gfx-pro\Explorer\explorer.php on
line 88


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29794&edit=1

Reply via email to