PDA

View Full Version : get_url - submit.php : Error on fread


Kurt
12-09-2005, 08:07 PM
Hello!

Sometimes, not quied often, the functions.php script crashed on line 352, when i try to submit a page. It doesnt matter which page.

Content visible to registered users only.

It chrashed at $data = fread($fp, $len);

$len is the same as matches[1], so i think $len is to big because an error in matches.

I dont remember the error exactly and it is hard to replicate, because i comes by random. But it sounds like "no such big filesize"

Can somebody help me?

Ap0s7le
12-09-2005, 09:11 PM
Once you get the error again, please post it to this thread.

Thanks :)

-Casey

Kurt
12-12-2005, 01:21 PM
OK!
Here it is:

Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 1034554193 bytes) in PHPLD/include/functions.php on line 353

Ap0s7le
12-12-2005, 07:56 PM
Hmm, Kurt.

Try this.
http://www.phplinkdirectory.com/forum/viewtopic.php?p=6147#6147

-Casey

Kurt
12-13-2005, 06:49 AM
I think, that would not help, because this line $data = fread($fp, 4096);
does the problems.
If i do it like this : http://www.phplinkdirectory.com/forum/viewtopic.php?p=6147#6147

only the line will be left $data = fread($fp, 4096);

I think there is a variable which is to big.