Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2005
    Posts
    51

    Getimagesize memory exhausted?

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 11519354 bytes) in

    PHP Code:
    list($game['flashw'][$key],$game['flashh'][$key]) = getimagesize(INT_GAMES "$value/" $newname); 


    How do i get around this?
    Suppose the flash file is quite big about 6 megs

  2. #2
    In your php.ini change "memory_limit" value to a bigger site than 8 MB, say...32 MB. This value describes maximum amount of memory a script may consume.

    If you are running under a shared hosting, paste this line into your .htaccess file:
    php_flag php_flag memory_limit "32M"

    Hope this will help, bye.

  3. #3
    Join Date
    Aug 2005
    Location
    Barcelona, Spain
    Posts
    3,397
    php_flag twice? I think that's incorrect?
    hi there!

  4. #4
    You are correct, sorry:
    php_flag memory_limit "32M"

    Bye.

  5. #5
    Join Date
    Apr 2005
    Posts
    51
    since im only getting the height and the width of the swf. Is there anyway to clear the swf from memory after getting width and height?

    If i run my code for 20 flash files i would still like it to work

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •