Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in /home/.../public_html/.../index.php on line 34
sorununu nasıl hallederim
av-arcade v3 memory size sorunu
5
●520
- 11-07-2008, 12:08:47Kimlik doğrulama veya yönetimden onay bekliyor.arkadaşım bi print screen çek at bakalım güzelce anlamadım çünkü tam dediğini
- 11-07-2008, 12:32:19<?
include ('config.php');
ob_start();
// Check for valid cookie
$sql = mysql_query("SELECT * FROM ava_cats ORDER BY id");
if(isset($_COOKIE["ava_username"]))
{
$user = $_COOKIE['ava_username'];
$code = $_COOKIE['ava_code'];
$sql = mysql_query("SELECT * FROM ava_users WHERE username='$user' AND password='$code'");
$login_check = mysql_num_rows($sql);
if($login_check <= 0)
{
echo 'Your cookie is not valid, please <a href='.$site_url.'/login.php?action=logout>logout</a>';
exit();
}
}
// If valid cookie and not logged in, find out if logged in or not
if(isset($_COOKIE["ava_username"]))
{
// Store all cookie data in variables
$user = $_COOKIE['ava_username'];
$code = $_COOKIE['ava_code'];
$userid = intval($_COOKIE['ava_userid']);
}
// Include the template
$string = $template_url;
if(!stristr($string, 'http') === FALSE) {
echo '#01 You have entered an invalid template url';
exit();
}
if (file_exists('.'.$template_url.'/index.php')) {
include ('.'.$template_url.'/index.php');}
else {echo '#02 You have entered an invalid template url'; }
ob_end_flush();
?>
index php bu - 11-07-2008, 12:42:08sunucu da yetkin varsa
memory_limit = 64M ;
script üzerinde
ini_set( 'memory_limit', '64M' );
anlamam dersen .htaccess te şunu
php_value memory_limit 16M
ekleyiver..