sarnath
Legacy Member
Ik heb een fotomanager programmaatje gemaakt waarmee een gebruiker foto albums kan maken.
Hiervoor maak ik in de map "albums" telkens de map voor het album aan en in die map nog een map "thumbs"
dus
albums
--vakantie
---thumbs
Nu maakt hij de map vakantie probleemloos aan, maar thumbs niet, ik krijg volgende error:
Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 10120 is not allowed to access /home/httpd/vhosts/-----/albums/qsdf owned by uid 48 in /home/httpd/vhosts/------
Warning: chmod() [function.chmod]: Unable to access /home/httpd/vhosts/-----/albums/qsdf/thumbs in /home/httpd/vhosts/-----
Warning: chmod() [function.chmod]: SAFE MODE Restriction in effect. The script whose uid is 10120 is not allowed to access /home/httpd/vhosts/-----/albums/qsdf owned by uid 48 in /home/httpd/vhosts/-----
Warning: chmod() [function.chmod]: stat failed for /home/httpd/vhosts/-----/albums/qsdf/thumbs in /home/httpd/vhosts/----
Nu kwam ik via Google hierop uit: SAFE MODE Restriction in effect. The script whose uid is - Dev Shed
Dus ik veronderstel dat dit aan de configuratie van hun server ligt en ik hier niet veel aan kan doen?
Ik voer hetvolgende uit:
Hiervoor maak ik in de map "albums" telkens de map voor het album aan en in die map nog een map "thumbs"
dus
albums
--vakantie
---thumbs
Nu maakt hij de map vakantie probleemloos aan, maar thumbs niet, ik krijg volgende error:
Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 10120 is not allowed to access /home/httpd/vhosts/-----/albums/qsdf owned by uid 48 in /home/httpd/vhosts/------
Warning: chmod() [function.chmod]: Unable to access /home/httpd/vhosts/-----/albums/qsdf/thumbs in /home/httpd/vhosts/-----
Warning: chmod() [function.chmod]: SAFE MODE Restriction in effect. The script whose uid is 10120 is not allowed to access /home/httpd/vhosts/-----/albums/qsdf owned by uid 48 in /home/httpd/vhosts/-----
Warning: chmod() [function.chmod]: stat failed for /home/httpd/vhosts/-----/albums/qsdf/thumbs in /home/httpd/vhosts/----
Nu kwam ik via Google hierop uit: SAFE MODE Restriction in effect. The script whose uid is - Dev Shed
Dus ik veronderstel dat dit aan de configuratie van hun server ligt en ik hier niet veel aan kan doen?
Ik voer hetvolgende uit:
Code:
mkdir($album);
chmod($album,0777);
$thumb_album = $album . "/thumbs";
mkdir($thumb_album);
chmod($thumb_album,0777);