I need to create directories using PHP page. I tried it using the following code. But it gave me errors.
Code: Select all
<?php
//$uid and $cid are integers
if (!file_exists("/cars_pics/full/$uid"))
{
mkdir ("/cars_pics/full/$uid", 0777);
}
if (!file_exists("/cars_pics/thumb/$uid"))
{
mkdir ("/cars_pics/thumb/$uid", 0777);
}
if (!file_exists("/cars_pics/full/$uid/$c_id"))
{
mkdir ("/cars_pics/full/$uid/$c_id", 0777);
}
if (!file_exists("/cars_pics/thumb/$uid/$c_id"))
{
mkdir ("/cars_pics/thumb/$uid/$c_id", 0777);
}
?>I am getting some error like
mkdir(): SAFE MODE Restriction in effect. The script whose uid is 10033 is not allowed to access / owned by uid 0 in /home/httpd/vh..../blahblah.php
Can any body throw some light on this topic.
Thank a lot in advance...
