PHP variables lost when uploading >~7MB files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amfony
    New Member
    • Oct 2006
    • 6

    PHP variables lost when uploading >~7MB files

    hello,

    I need help from someone or some people who know PHP well. I am a newbie yes. But ihave a made a nice site which has about 5 pages. It is a homework submission site. It works perfectly exepct for one problem.

    When someone submits a file larger then 7MB (approx) the session varaibles i created are lost and all variables are now null. However every file smaler then that works perfectly.

    I am running IIS 6 on Win 2k3.

    I am using session_start() and $_SESSION['blah'] = 'blah blah' as my methods of sessions. (no session_registe r or superglobals ((which i dont know wot that is)))

    I also increased the Memory limit size in [resources] from 16 to 50 just to be sure and it still didnt help.

    Can anyone help me with this? Please. I am so at a loss.

    Thank you.
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Have you tried increasing your max post size and max upload size? Take a look at phpinfo() and see what they are set to.

    Comment

    • amfony
      New Member
      • Oct 2006
      • 6

      #3
      Originally posted by Motoma
      Have you tried increasing your max post size and max upload size? Take a look at phpinfo() and see what they are set to.
      Hey - you answered it in one. Sorry it was a very silly thing for me to not see. I assumed that max_upload was the only upload specific value, theres also max_post - who knew? Not me.

      Thanks alot, i am now content!

      thank you.

      Comment

      Working...