Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[PHP] An error on a browser game

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Sat Feb 21, 2009 1:41 pm    Post subject: [PHP] An error on a browser game Reply with quote

Quote:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 73 bytes) in /usr/export/www/vhosts/funnetwork/hosting/ingyen/Xnova/includes/aks.php on line 347


The browser game is XNova, hosting it on free web space
The error occours when attacking

I think it might be because of to less RAM .. but i don't know:
this is the line:
Quote:
"p" => floor((($pricelist[$schiff_id]['metal'] + $pricelist[$schiff_id]['crystal']) + ((($pricelist[$schiff_id]['metal'] + $pricelist[$schiff_id]['crystal']) / 10) * $verteidiger_techniken[$vert_id]['panzerung'])) / 10)

I'll attach the file.[/b]



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________
Back to top
View user's profile Send private message
Localhost
I post too much
Reputation: 0

Joined: 28 Apr 2007
Posts: 3402

PostPosted: Sun Feb 22, 2009 5:55 pm    Post subject: Reply with quote

This probably wont work since your on a free host...

but at the top of the script (right under <?php)
put...

ini_set("memory_limit","100M");

_________________
Back to top
View user's profile Send private message MSN Messenger
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Mon Feb 23, 2009 5:15 am    Post subject: Reply with quote

you are right...

Quote:
Warning: ini_set() has been disabled for security reasons in /usr/export/www/vhosts/funnetwork/hosting/ingyen/Xnova/includes/aks.php on line 2

_________________
Back to top
View user's profile Send private message
Localhost
I post too much
Reputation: 0

Joined: 28 Apr 2007
Posts: 3402

PostPosted: Mon Feb 23, 2009 5:18 am    Post subject: Reply with quote

Thought so... You can't do much/anything (atleast that i know of..)

Get a REAL host?

_________________
Back to top
View user's profile Send private message MSN Messenger
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Mon Feb 23, 2009 6:02 am    Post subject: Reply with quote

to expensive, i'll try different freehost
we are only 3 ppl and wont become more then 10

So it IS a problem caused by freehost?

_________________
Back to top
View user's profile Send private message
Localhost
I post too much
Reputation: 0

Joined: 28 Apr 2007
Posts: 3402

PostPosted: Mon Feb 23, 2009 6:49 pm    Post subject: Reply with quote

No, the script might be stuck in some loop or something similar... and is hogging alot fo resources...
_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites