| 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
|
Posted: Sat Feb 21, 2009 1:41 pm Post subject: [PHP] An error on a browser game |
|
|
| 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]
_________________
|
|
| Back to top |
|
 |
Localhost I post too much
Reputation: 0
Joined: 28 Apr 2007 Posts: 3402
|
Posted: Sun Feb 22, 2009 5:55 pm Post subject: |
|
|
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 |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Mon Feb 23, 2009 5:15 am Post subject: |
|
|
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 |
|
 |
Localhost I post too much
Reputation: 0
Joined: 28 Apr 2007 Posts: 3402
|
Posted: Mon Feb 23, 2009 5:18 am Post subject: |
|
|
Thought so... You can't do much/anything (atleast that i know of..)
Get a REAL host?
_________________
|
|
| Back to top |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Mon Feb 23, 2009 6:02 am Post subject: |
|
|
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 |
|
 |
Localhost I post too much
Reputation: 0
Joined: 28 Apr 2007 Posts: 3402
|
Posted: Mon Feb 23, 2009 6:49 pm Post subject: |
|
|
No, the script might be stuck in some loop or something similar... and is hogging alot fo resources...
_________________
|
|
| Back to top |
|
 |
|