Jump to content
php.lv forumi

kā izveidot failu safe mode režīmā?


maar

Recommended Posts

patiesībā failu izveidot izdodas. pat vairākos veidos...

bet tiesības nomainīt failam nevaru un šo failu nevaru ar include() izmantot...

 

if (!file_exists($filename)) {

touch($filename); // - fails izveidojas ar tiesibaam 644

chmod($filename, 0777);// tiesibas nomainit neizdodas... ne ar php ne no ftp...

}

 

izdzest vismaz izdodas tomer...

 

direktoriju izveidot nav problemu.

$oldumask = umask(0);

mkdir("../zinjas/".$new_id, 0777);

umask($oldumask);

 

kas vainas failam? kā apiet to safe modi???

Edited by maar
Link to comment
Share on other sites

Warning: SAFE MODE Restriction in effect. The script whose uid is 22817 is not allowed to access ../txt.php owned by uid 33 in /home/.../setperm.php on line 25

Edited by maar
Link to comment
Share on other sites

×
×
  • Create New...