geeman Posted August 14, 2013 Share Posted August 14, 2013 I don't know how to fix this. It worked in 4.3 php, then my server got upgrade to 5.0 , then I have this error , how do I fix this. Thanks if you read this. it might be 5.3 php now Warning: file() [function.file]: Filename cannot be empty in (directory) at line 24. So here is my line24 24 $answerarray = file($_POST['answerfile'] ); Quote Link to comment Share on other sites More sharing options...
requinix Posted August 14, 2013 Share Posted August 14, 2013 You have to check that the form was submitted before you try to use it anywhere. Like if (isset($_POST["name of the submit button"])) { Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.