Jump to content
  • 0

L2Off + php error


Question

Posted

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 24064 bytes) in E:\wamp\www

 

i need to make 1 php file for see all char name

but he give me this error

3 answers to this question

Recommended Posts

  • 0
Posted

check, were it sets the allocated memory. You use wamp on server machine ? Its easier to run a site on a linux host with FreeTDS.

  • 0
Posted

8388608 bytes? how many characters are you trying to query? I think your script has some bad management of resources to consume 8mb of data just for character names, even in unicode 8mb is almost 168,000 character names.

So I would examine your script and make sure that resources such as the sql row data are deleted once you have done what you need with them, and also look at limiting the data that is returned to exactly what you need.

 

But anyway.

php.ini:

; Maximum amount of memory a script may consume (128MB)

; http://php.net/memory-limit

memory_limit = 8M

 

Set that to 128M or something and it shouldn't error anymore.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock