On Tue, Nov 13, 2012 at 12:23 AM, Carol Peck carolap...@gmail.com wrote:
On 11/12/2012 11:51 AM, Matijn Woudt wrote:
On Mon, Nov 12, 2012 at 3:17 PM, Carol Peck carolap...@gmail.com wrote:
Sebastian,
Yes, I do , but this particular error never gets into my custom handler.
I have also
On 11/13/2012 6:29 AM, Matijn Woudt wrote:
On Tue, Nov 13, 2012 at 12:23 AM, Carol Peck carolap...@gmail.com
mailto:carolap...@gmail.com wrote:
On 11/12/2012 11:51 AM, Matijn Woudt wrote:
On Mon, Nov 12, 2012 at 3:17 PM, Carol Peck carolap...@gmail.com
Sebastian,
Yes, I do , but this particular error never gets into my custom handler.
I have also set it so that fatal errors fall through, and that doesn't
seem to make any difference (again, probably because it never gets there).
Carol
On 11/11/2012 11:16 AM, Sebastian Krebs wrote:
Hi,
Do
On 11/11/2012 08:45 AM, Carol Peck wrote:
Hi all,
I've been chasing around a memory allocation error for some time and
can't figure it out. It is somewhat random - I can run the script 3
times and then it will happen, or sometimes the first time.
It happens at the very end of a script, actually
Jim,
Thanks for your idea - using die prevents it from coming up. As I
mentioned, it is rather random so sometimes hard to verify.
My auto_prepend and auto_append have no value in php.ini. I'm
wondering why you suggested that?
Best,
Carol
On 11/12/2012 8:09 AM, Jim Lucas wrote:
On
Jim,
I just found that the die didn't fix it after all - just ran into it again.
So still looking for ideas!
thanks,
Carol
On 11/12/2012 8:09 AM, Jim Lucas wrote:
On 11/11/2012 08:45 AM, Carol Peck wrote:
Hi all,
I've been chasing around a memory allocation error for some time and
can't
This could be an issue with the library you're using, adodb, I'd check to see
if it has any debugging options to enable. I'm not familiar with it at all but
that may be helpful. I'd also check out adodbs bug tracker, if one exists.
Another suggestion would be use a profiler, such as xdebug, I
Original Message
From: James ja...@nixsecurity.org
To: Carol Peck carolap...@gmail.com, Jim Lucas li...@cmsws.com
Cc: php-general@lists.php.net
Sent: Mon, Nov 12, 2012, 12:53 PM
Subject: Re: [PHP] memory allocation error
This could be an issue with the library you're using, adodb, I'd
On 11/12/2012 7:50 AM, Carol Peck wrote:
Jim,
Thanks for your idea - using die prevents it from coming up. As I
mentioned, it is rather random so sometimes hard to verify.
My auto_prepend and auto_append have no value in php.ini. I'm
wondering why you suggested that?
If something was
On 11/12/2012 8:54 AM, Carol Peck wrote:
Jim,
I just found that the die didn't fix it after all - just ran into it again.
So still looking for ideas!
thanks,
Carol
Then it must be something in either your code or the way PHP is doing
some garbage collection with the libs you are using.
On Mon, Nov 12, 2012 at 3:17 PM, Carol Peck carolap...@gmail.com wrote:
Sebastian,
Yes, I do , but this particular error never gets into my custom handler.
I have also set it so that fatal errors fall through, and that doesn't
seem to make any difference (again, probably because it never gets
On 11/12/2012 11:51 AM, Matijn Woudt wrote:
On Mon, Nov 12, 2012 at 3:17 PM, Carol Peck carolap...@gmail.com
mailto:carolap...@gmail.com wrote:
Sebastian,
Yes, I do , but this particular error never gets into my custom
handler.
I have also set it so that fatal errors fall
On Tue, Sep 25, 2012 at 12:49 PM, Marcelo Bianchi
mbian...@gfz-potsdam.de wrote:
Dear list,
I developed a script that have to create considerable array of integer
numbers in memory. Currently my script has to accommodate in memory two
arrays of around 120.000 numbers (for one year of data, I
Hi Matijn,
That is good test, to install php 32bit side to side with the 64bit to
test. Will see how hard is to accomplish that.
regards,
Marcelo
On 09/25/2012 01:58 PM, Matijn Woudt wrote:
On Tue, Sep 25, 2012 at 12:49 PM, Marcelo Bianchi
mbian...@gfz-potsdam.de wrote:
Dear list,
I
Uhm, Okay,
I get it ... I am loading all at once, will try this out.
Here is what I do:
-- begin code
$network = IA;
$station = BJI;
$channel = BHZ;
$year = 2011;
$top = NULL;
$result = mysql_query('select '.$year.' as year, net, station, loc,
channel, start_day, start_time, end_day,
I would like to see how you are reading data from database?
There are many ways to reduce memory usage. Here is a very common way
reduce memory.
instead of
$res = mysql_query(select * from table1 limit 1000);
while($row = mysql_fetch_assoc($res)){
/// process row.
}
Do this,
for($x = 0;
On 09/25/2012 02:40 PM, shiplu wrote:
Also if the final data on presentation layer is very small you can
calculate it in mysql using stored procedure.
okay, also something to try.
thank you !
regards,
marcelo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[EMAIL PROTECTED] wrote:
Hi!
I have a script that reads a 120 MB remote file. This raises a Memory
Allocation Error unless I use:
ini_set('memory_limit', '130M');
I doubt this is good for my server... I tried both fopen and
file_get_contents. This used to work fine in PHP 4 until I
Thank you! That works.
On Nov 6, 2007 12:23 AM, Per Jessen [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
Hi!
I have a script that reads a 120 MB remote file. This raises a Memory
Allocation Error unless I use:
ini_set('memory_limit', '130M');
I doubt this is good for my
# [EMAIL PROTECTED] / 2007-01-15 16:43:50 +:
Hi,
I have a script parsing the lines of a (rather large) file:
while (!feof($outPluginfh)) {
$outPlugin = fgets ($outPluginfh,1024);
# process $outPlugin here...
}
Now, with large files I was running into an memory
As a side note, even though user is shown as apache, this code was
executed from command line.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I got the same results from my benchmarks, also.
Unless you want to change variable in function and get modified value, do not
use reference.
Without reference, PHP4 executes script faster. Due to reference counting in
PHP4, probably.
Regards,
--
Yasuo Ohgaki
"Christian Dechery" [EMAIL
22 matches
Mail list logo