Fatal error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mang
Forum Newbie
Posts: 8
Joined: Thu Nov 02, 2006 12:43 am

Fatal error

Post by mang »

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 11520 bytes) in /public_html/top_level.inc.php on line 12 in php

on line 12 it is
$login_arr = array("allotted file names");

if(in_array($curr_file, $login_arr) && !isset($HTTP_COOKIE_VARS["COOKIE_NAME"]))

Can you help me plz
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

That's an awful lot of memory to use for many applications.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Is this the actual code:

Code: Select all

<?php
$login_arr = array("allotted file names");

if(in_array($curr_file, $login_arr) && !isset($HTTP_COOKIE_VARS["COOKIE_NAME"]))
?>
amir
Forum Contributor
Posts: 287
Joined: Sat Oct 07, 2006 4:28 pm

Re: Fatal error

Post by amir »

Use PHP bbCode tags when posting PHP code, use Code bbCode tags when posting code or use the very useful Syntax... dropdown for other code language variants. Thank you.
mang wrote:Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 11520 bytes) in /public_html/top_level.inc.php on line 12 in php

on line 12 it is

Code: Select all

$login_arr = array("allotted file names");

if(in_array($curr_file, $login_arr) && !isset($HTTP_COOKIE_VARS["COOKIE_NAME"]))
Can you help me plz
Post Reply