   PHP File Permission Problem
  On my server for some reason php scripts cannot access files.  For example here''s a very simple php scriptThe permisions of /usr/local/www/data-dist/InvBoard/uploads/test.txt are -rw-rw-rw- it is owned by root and part of the www group.  Apache runs using a user that is also part of the www group.  Does anyone know what may be causing this?I''m using FreeBSD 5.0, Apache 2 and PHP 4 
  Perhaps you might need to change your permissions to include a 7 such as chmod a=rwx or chmod 777 [filename]. Its an interesting question that I have probably would have come at sooner or later but perhaps the permission to "execute" is needed for the php script to run the file and that is why you are not able to do so. chmod the file manually and test to see if that worked and then do the necessary changes to automatically have the permissions set for all files in a given directory. ;  Yep it just needed an execute permission.  Odd that.  Thanks for the help.   [edited by - Monder on August 4, 2003 6:25:35 PM]