开发者

is_dir failure?

So, from a script running in /home/a-spdb/www/sofa:

  • is_dir("/home/a-spdb/www/sofa/uploads") //returns true
  • is_dir("/home/a-spdb/www/sofa/uploads/talent") //returns false

sshing into the server, the 'talent' folder clearly exists:

bash-3.00$ pwd
/home/a-spdb/www/sofa/uploads
bash-3.00$ ls -l
total 0
drwxrwsr-x+  2 myusername  someusergroup      96 Nov 15 00:50 talent

I've tried deleting the talent fold开发者_如何学Cer and recreating it (just mkdir talent), but I still can't get is_dir to accept that it is a directory. Any idea why?


Have you tried running clearstatcache? As per id_dir documentation, the result is cached:

Note: The results of this function are cached. See clearstatcache() for more details.


Maybe it's a safe_mode restriction. Compare the UID of the script and the folder.


For some reason, deleting the folder above the offending one (ie, deleting /home/a-spdb/www/sofa/uploads) and recreating it did the trick. May have been an ACL issue or something.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜