title: function is_file() always returns false
body: <p>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 ..</p>