smartalco Posted July 10, 2007 Share Posted July 10, 2007 is there a way to modify the owner and group of another file using php?the reason im asking is this -> Warning: include() [function.include]: SAFE MODE Restriction in effect. The script whose uid/gid is 48/48 is not allowed to access /*censored but correct file path*/photo_template.php owned by uid/gid 672/588 in /*once again*/photo_album/photos1.php on line 6 Any other way to fix this would be appreciated, heres the content of 'photos1.php' <?php session_start(); $_SESSION["page_num"] = 1; $_SESSION["event"] = "Tiger Icy"; ?><?php include $_SERVER['DOCUMENT_ROOT'] . "/*censored*/photo_template.php"; ?> Link to comment Share on other sites More sharing options...
-Mike- Posted July 10, 2007 Share Posted July 10, 2007 To change a file owner or group there are two functionschown() and chgrp() Link to comment Share on other sites More sharing options...
smartalco Posted July 10, 2007 Author Share Posted July 10, 2007 well that seems pretty useless for me, it still won't work with safe modenvm: don't care anymore, i abandoned my previous system for this sites photo album thing, now im doing it the smarter way (dynamic photo album page) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.