If possible, increase the memory limit at run-time. doh!
authormoodler <moodler>
Mon, 16 Aug 2004 07:26:19 +0000 (07:26 +0000)
committermoodler <moodler>
Mon, 16 Aug 2004 07:26:19 +0000 (07:26 +0000)
Not many servers have this compiled into PHP though.

lib/setup.php

index c5d36c90dd60f0f20919c1ff9f6e9fd7e0902c40..82866b56036696bb43d7ebb7d629e2cbe23d0593 100644 (file)
@@ -73,6 +73,9 @@
     require_once("$CFG->libdir/moodlelib.php");       // Other general-purpose functions
 
 
+/// Increase memory limits if possible
+
+    @ini_set('memory_limit' , '16M');
 
 
 /// Load up any configuration from the config table