I have written small CMS in Laravel 4 and I was working on it using wamp. Application was in www folder and everything was working fine.
When I have finished with development, I moved an application to my live server and I have put application in root folder of my hosting (folder above public_html).
In some functions I'm checking if some files exist, and while I was on wamp, everything worked, but now file_exists() always returns false.
Folder permissions of the folder where files are stored are set to 755, and files are with same permissions.
I have already tried clearstatcache() and Safe mode cannot be an issue since it was removed in PHP 5.4. Any other ideas?
if(file_exists('public_html/repo/images/testimage.jpg')){
//do something
}
else{
echo "error";
}
I have checked several times, and file does exists if I try to access it via url
safe_mode_include_dir? Also,ls -l /home/user/public_html/root/and add the output to your question./when you shouldn't be, or you've omitted it when you shouldn't. Can you post some code please?safe_mode_include_diris already atno value. I thought it was php 5.4 and it is 5.3.26. Safe mode is off. Also I have added sample code above