Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 3840 bytes) in /home/elitenet/public_html/echo/admin/functions.php on line 18
3840 < 20971520, so why is the memory exhausted?
The entire functions.php script is:
Code: Select all
<?php
session_start();
ini_set("memory_limit", "20M");
include('variables.php');
function logged_in() { //Check to see if the person is logged in
if (($session['user'] == ('' || null)) || ($session['pass'] == ('' || null))) {
$temp_var=false;
}
else {
$temp_var=true;
}
return $temp_var;
};
function generate_code($seed) {
$temp_var=ord($seed) * 1337;
$temp_var=$temp_var + strlen($seed);
$temp_var=$temp_var / (1337 / strlen($seed));
}
?>Code: Select all
$temp_var=$temp_var + strlen($seed);feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]