OZONE Asylum
Forums
Server-Side Scripting - Oh my!
Can't download multipart message body to database??????
This page's ID:
29570
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
And that's where the fun starts... PHP has all kinds of quirky little limits, probably implemented to prevent a run-away script from hosing your server. The two most common ones are a) a 'wall time limit', limiting your script to (by default) 30 seconds of runtime, as measured by 'a clock on the wall', but not including time spend in fopen, fread, and the like.. See http://de.php.net/manual/en/function.set-time-limit.php b) The memory limit. This limits your script to 8 megs of memory (default) - see http://de.php.net/manual/en/ini.core.php under memory_limit. This problem is confounded by PHPs bad memory managment that pretty much relies on 'clean on end of request'. Even if you assign $var = NULL, the contents to var is freed, but you still loose a few bytes in free memory *each* time. Please note that that's PHP4 - I don't know about 5. b) is what you're running into right now. You might get around it by loading the attachments in blocks and then using the sql engine to append those blocks to your blob (having a file is way easier in this case, though). Alternatively, you can try to extend the memory limit on your server, provided you control the php.ini... but it will serverely limit the cohosting accounts your software will run on. So long, ->Tyberius Prime
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail