1

LAMP (with PHP): file_exists fails mysteriously. Goal is ownCloud.

view story
linux-howto

https://bbs.archlinux.org – Obviously I should have checked file_exists a long while back, but not being a PHP person, I didn't know it existed. Below is my current test php file and its output. As you can see, is_dir fails only when file_exists fails.<?php header('Content-type: text/plain'); clearstatcache(); print "current working directory is -> ".getcwd()."\n"; print "/ is ".(is_dir('/')?"":"not ")."a directory\n"; print "/srv/http/ is ".(is_dir('/srv/http/')?"":"not ")."a directory\ (HowTos)