Welcome, Guest
  • Author Topic: memory_limit = 64M / php.ini  (Read 5721 times)

    till

    • Seasoned Programmer
    • ***
    • Posts: 200
      • View Profile
      • Email
    memory_limit = 64M / php.ini
    « on: 03/08/09, 07:39 »
    hi!



    i have  problems to understand whats the causality of memory_limit set in php.ini and
    memory_get_usage();

    when uploading i let print out (memory_get_usage()) after certain events.

    that gives me:

    Code: [Select]
    FILE : P1000081.JPG size = 4.47517299652 MB

    START: 0.127296447754 MB

    AFTER Image Create From JEPG: 47.8070411682 MB

    AFTER Image Create True Color: 49.1384277344 MB

    AFTER Image Copy Resampled: 49.1384887695 MB

    AFTER Image Destroy: 0 MB



    PHP Version 5.2.6
    upload_max_filesize   32M
    memory_limit   100M

    so i thought memory_limit of 64M has to be enough.
    but doesnt work.
    only with 100M.

    can you explain?
    thanks.
    till.

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: memory_limit = 64M / php.ini
    « Reply #1 on: 03/08/09, 11:55 »
    The script itself uses memory, the variables, you are using, take memory etc.
    happy flashing
    8)
    Ronald

    till

    • Seasoned Programmer
    • ***
    • Posts: 200
      • View Profile
      • Email
    Re: memory_limit = 64M / php.ini
    « Reply #2 on: 03/08/09, 14:57 »
    hi ronald!

    my question:

    so i thought memory_limit of 64M has to be enough.
    but doesnt work.
    only with 100M. ( php.ini)

    ?

    till.