开发者

function is_file() always returns false

i had started PHP programming some days before. and I'm was writing a script to upload a file on the server. After the server verifies the image was correct type (png, gif or jpeg), the user was to be given an confirmation message. i used is_file() and getsize() for this, but these functions always returned false. Once, Linux gave me an warning that selinux policy was denying access to httpd to access the image data.开发者_如何转开发 permissions to the image and its containing folder are set to 0777. please help me. thanx in advance ..


This might be due to open_basedir restrictions.

If this option is set and the file you're trying to access is not under one of the paths specified, it's not accessible to is_file().

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜