redfinger Posted June 14, 2013 Share Posted June 14, 2013 please why is this php error handling not working <?phpif(!file_exists("dem.txt")){die("file not found")}else{$file=fopen("dem.txt","r");}?> its suppose to echo file not found.thanks Link to comment Share on other sites More sharing options...
thescientist Posted June 14, 2013 Share Posted June 14, 2013 maybe the file does exist? Link to comment Share on other sites More sharing options...
justsomeguy Posted June 14, 2013 Share Posted June 14, 2013 You're missing a semicolon after the die statement. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now