westman Posted February 8, 2014 Share Posted February 8, 2014 hi all, I am using file_exists not for files but to see if a folder exists here is my code... if (file_exists("../$folder_name")) {$mes = 'here';}else{$mes = 'not here';} again I am looking for folders and my code is not working, any help? Link to comment Share on other sites More sharing options...
westman Posted February 8, 2014 Author Share Posted February 8, 2014 I am so sorry it dose work i put 'here' and 'not here' in the wrong place again sorry Link to comment Share on other sites More sharing options...
justsomeguy Posted February 10, 2014 Share Posted February 10, 2014 You might want to use this instead: http://www.php.net/manual/en/function.is-dir.php 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