I'm not sure but... Check your httpd.conf and see if you're running Apache as "Group -1". Change this to "nobody" or better yet make a new user/group (like apache/apache for example) for your Apache and change the lines-
User nobody Group -1 to User apache Group apache Then, restart Apache after making the changes. Also, try chmod(ing) 777 "data.txt" and see what happens... (You can even try changing the owner of "data.txt" itself...) - E > >Hi everyone... >I have some problem with the safe mode of php. >i get this errors when i try to access the file. >---------------------------------------------------------------------- >PHP Warning: SAFE MODE Restriction in effect. The script whose >uid/gid is -1/-1 is not allowed to access data.txt owned by uid/gid >0/0 in /var/www/htdocs/ntfs/cap10/handlefile.php on line 7 > >PHP Warning: fopen("data.txt", "a+") - No such file or directory in >/var/www/htdocs/ntfs/cap10/handlefile.php on line 7 >------------------------------------------------------------------------- >I donエt know why uid-gid = -1/-1 ??. i che the user and permissions >more than once and everything is ok. Itエs seems like php not >recognize the permissions of the script but yes recognize well the >permissions of the data.txt. >Hi read that php 4.2.2 have alpha support for apache 2.0.39/40. is >that it? > >In my winXP configuration (apache 2.0.40 php 4.2.2) have the same >problem but, when i switch from isapi mode and run php in the normal >mode, recognize the correct file user/group permissions. >But in my slack 8.1 conf (apache 2.0.39 php 4.2.2) i dont know what >to do... Any Ideas ??? > >Thanks for your help... >Sebastian > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php _________________________________________________________________ ハイセンスな商品を気軽に購入 MSN ショッピング http://shopping.msn.co.jp/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php