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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...