SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Oct 2010
    Posts
    323
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    max_execution_time

    please i am having an error importing a file ""You probably tried to upload too large file. Please refer to documentation
    for ways to workaround this limit.""
    and i as advised to edit the max_execution_time to "0" when i checked the "http://localhost/phpinfo.php" it was there set to 30, but when i tried to edit it with pico
    using the terminal
    sudo pico ./php.ini
    it allowed me in but when i searched for "max_execution_time"
    it says cant find please how can i edit this please

  2. #2
    Who turned the lights out !! Mandes's Avatar
    Join Date
    May 2005
    Location
    S.W. France
    Posts
    2,496
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Add this line
    PHP Code:
    set_time_limit(0); 
    to the top of your php script, to allow that script more execution time.

    However the fact that your getting an image too large message could also mean that the script checks the upload size of the file rather than the script timing out.
    A Little Knowledge Is A Very Dangerous Thing.......
    That Makes Me A Lethal Weapon !!!!!!!!

    Contract PHP Programming

  3. #3
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    73 Post(s)
    Tagged
    0 Thread(s)
    How big of a file are you attempting to upload?
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.


Bookmarks

Posting Permissions

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