470,870 Members | 1,155 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,870 developers. It's quick & easy.

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!
Apr 16 '19 #1
1 4304
5,390 Expert Mod 4TB
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.
Apr 18 '19 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Marcus | last post: by
3 posts views Thread by moondaddy | last post: by
19 posts views Thread by Alan Silver | last post: by
185 posts views Thread by jacob navia | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.