spynode Posted October 25, 2004 Report Share Posted October 25, 2004 Man nekādi neiznāk unlinkot (izdzēst) failu, jo visu laiku met ārā šo Warning: unlink(kods.php): Permission denied in C:\Program Files\Apache Group\Apache2\htdocs\a\index.php on line 127 Esmu viņu chmodojis uz 777. Kad izmantoju fileperms man izmet ārā 33060 - owneris un grupa var rakstīt un laist. Pēc idejas vajadzēja visam dzēsties. Kas varētu būt par problēmu ? Link to comment Share on other sites More sharing options...
Venom Posted October 26, 2004 Report Share Posted October 26, 2004 (edited) ā) tomēr apache procesam tiesību nav bē) mēģina dzēst kods.php kaut kur root (servera root) direktorijā, try smth. like ./kods.php Edited October 26, 2004 by Venom Link to comment Share on other sites More sharing options...
spynode Posted October 26, 2004 Author Report Share Posted October 26, 2004 Interesantākais ir tas, ka es ar to pašu skriptu radu to failu tur vienā direktorijā... a pēc tam izdzēst nevar. Neesi saskāries ar tādu gļuku ? Link to comment Share on other sites More sharing options...
Venom Posted October 26, 2004 Report Share Posted October 26, 2004 _kā izdzēst_ - ar ftp klientu, php? kad php taisi chmod - kā tu to dari? neba chmod($file,777)? Link to comment Share on other sites More sharing options...
рпр Posted October 26, 2004 Report Share Posted October 26, 2004 paskaties umask(); f-ju Link to comment Share on other sites More sharing options...
spynode Posted October 26, 2004 Author Report Share Posted October 26, 2004 (edited) Izdzēst ar unlink() kā jau teicu. Jā taisīju chmodu uz 777. p.s. maska ir 0. p.s.s. kad es uztiasu chmod($fails, 777 (meegjinaaju arii ar o+w)) , un peec tam ar fileperms drukaaju aaraa taa faila tiesiibas vinjsh man taapat paraada, ka faila tiesiibas ir 33060. Bet tas vareetu buut saistiits ar to ? Failu jau apachei peec idejas jaavar izdzeest arii ar 33060. Edited October 26, 2004 by spynode Link to comment Share on other sites More sharing options...
Venom Posted October 26, 2004 Report Share Posted October 26, 2004 chmod($fails,0777)! ar 0 priekšā! Link to comment Share on other sites More sharing options...
spynode Posted October 26, 2004 Author Report Share Posted October 26, 2004 he he tici vai nee , bet shitas paliidzeeja gan :). kautkaa ar r+w un shitiem arii negribeeja iet. Link to comment Share on other sites More sharing options...
Venom Posted October 26, 2004 Report Share Posted October 26, 2004 ticu, jo tev jāmāk lasīt manuāli: chmod ("/somedir/somefile", "u+rwx,go+rx"); // string; incorrect chmod ("/somedir/somefile", 0755); // octal; correct value of mode Link to comment Share on other sites More sharing options...
Recommended Posts