By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,412 Members | 2,843 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,412 IT Pros & Developers. It's quick & easy.

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

P: 1
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
Share this Question
Share on Google+
1 Reply


gits
Expert Mod 5K+
P: 5,333
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.