ragazzi volevo sapere se conoscete un modo per creare una dir tramite PHP: io ho questo script ma non va a causa del safe mode
$i=0;
$dir_root=$_SERVER['DOCUMENT_ROOT'];
$upload_dir=$upload_dir."/";
if(is_dir($upload_dir))
{
$d = @dir($upload_dir) or die(FALSE);
while ($entry = $d->read())
{
if ($entry != '.' && $entry != '..')
{
$array_nomefile = explode (".", $entry);
$i = $array_nomefile[0];
}
}
$d->close();
}
else
{
//$oldumask= umask(0);
mkdir($upload_dir, 0777);
//umask($oldumask);
$d = @dir($upload_dir) or die(FALSE);
while ($entry = $d->read())
{
if ($entry != '.' && $entry != '..')
{
$array_nomefile = explode (".", $entry);
$i = $array_nomefile[0];
}
}
$d->close();
}