Apache does not execute $_FILE but it execute the code without $_FILE

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • apacheguru
    New Member
    • Apr 2019
    • 1

    Apache does not execute $_FILE but it execute the code without $_FILE

    I have installed apache and php on my ubuntu 18.4 machine. php is 7.2 version and apache2 (Apache/2.4.29 (Ubuntu)). The apache server opens my website with no problem, but it can only execute the php code if it does not have a call to a function such as $_FILE. If I include $_FILE in my php code, the apache does not execute the php code and it only gives white page. Please help!
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    this is more likely a problem with the php script itself - but you should check the error.log first - this will probably show you at least a hint on what's going wrong.

    and check if you used $_FILES and not only $_FILE which would be the wrong variable name.
    Last edited by gits; Apr 18 '19, 04:35 PM.

    Comment

    Working...