PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 8625
Location: Arizona

PostPosted: Thu May 29, 2008 6:03 am Reply with quote Back to top

Just wanted to highlight an issue I just ran into while using this new feature now on my production site:

[Thu May 29 07:48:41 2008] [error] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 28564805 bytes) in /****/admin/modules/nukesentinel/ABDBDownload.php on line 110

Due to various reasons, I would rather not set a higher memory allocation using a php_flag within .htaccess (unless it can be targeted just to that script somehow). What I would like to suggest is that ABDBDownload.php be modified to make an attempt to change the max memory size IF that is even possible that late in the "game".

It looks as thought it is failing in the compression step. Or, I wonder if it would be possible to actually stream the I/O instead of requiring the whole file be read into memory at once. Sorry, don't know what is possible with gz.
View user's profile Send private message Visit poster's website
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1043
Location: RedNeck Land (known as Kentucky)

PostPosted: Fri Jun 06, 2008 10:40 pm Reply with quote Back to top

The file can be streamed but not as a .gz that I am aware of. It has to first be saved then compressed. Will look to see if I can make it a two step process, that way it would clear the memory between saving and compressing.
View user's profile Send private message Send e-mail Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 8625
Location: Arizona

PostPosted: Sat Jun 07, 2008 6:52 am Reply with quote Back to top

Yeah, not sure either. I know within *nix you can use piped output to do this, but not sure if there is a PHP equivalent.
View user's profile Send private message Visit poster's website
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1043
Location: RedNeck Land (known as Kentucky)

PostPosted: Thu Jun 19, 2008 9:32 pm Reply with quote Back to top

Addressed in .19
View user's profile Send private message Send e-mail Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5823

PostPosted: Fri Jun 20, 2008 12:37 pm Reply with quote Back to top

Outstanding!
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2010 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum