irf2k
03-16-2007, 12:31 PM
1 month ago I was working on a php script that was returning a memory allocation error (basically, it was using too much memory). However, I fixed the error using ini_set("memory_limit", "100M");
Now, I am having a similar error, and I don't understand why. I have tested to make sure that the ini_set is actually executing, but I still receive an error.
Specifically, I get a 500 Internal Server Error, and my host tells me that the error log says:
FATAL: emalloc(): Unable to allocate 12 bytes
[Fri Mar 16 05:23:45 2007] [error] [client X.X.X.X] Premature end of script headers: CRON/updateDE2.php
So, basically, I am having memory errors AGAIN, even though I have used ini_set to increase the memory limit. What else could I do to fix this problem?
Now, I am having a similar error, and I don't understand why. I have tested to make sure that the ini_set is actually executing, but I still receive an error.
Specifically, I get a 500 Internal Server Error, and my host tells me that the error log says:
FATAL: emalloc(): Unable to allocate 12 bytes
[Fri Mar 16 05:23:45 2007] [error] [client X.X.X.X] Premature end of script headers: CRON/updateDE2.php
So, basically, I am having memory errors AGAIN, even though I have used ini_set to increase the memory limit. What else could I do to fix this problem?