Help - Search - Members - Calendar
Full Version: Php Mkdir = Safemode
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > PHP
dansag
please can any 1 say me the way for keep this safemode and lets make directory side server!

class directorios
{

function check_directorio()
{
include('config.php');
$carpeta=1;
if(!is_dir('nothing/')){ rmdir('nothing/');}

if(!is_dir('pelis/'))
{
mkdir("pelis/");

if(!is_dir('pelis/streaming')){mkdir("pelis/streaming");}
if(!is_dir('pelis/descargas')){mkdir("pelis/descargas");}

while(!empty($genero[$carpeta]))
{
$nombre_carpeta=$genero[$carpeta];

if(!is_dir('pelis/streaming/$nombre_carpeta')){mkdir("pelis/streaming/$nombre_carpeta");}
if(!is_dir('pelis/descargas/$nombre_carpeta')){mkdir("pelis/descargas/$nombre_carpeta");}

$carpeta++;
}// fin while

}// fin directorio exist

}// fin function check_directorio


}//fin class


i get error from side server safemode and i cant deleted folder... im totaly sucks?
Bogey
What kind of error are you getting. Can you post it here?
dansag
QUOTE(Bogey @ Jan 11 2009, 04:03 AM) *
What kind of error are you getting. Can you post it here?


only that hunter.gif

i redited the code for folder pelis to pelisa, because on pelis now i get access denied, i cant deleted it from server any folder maked by mkdir.

MESSAGE ERROR FROM FTP: 550 Can't change directory to nothing1: Permission denied.

MESAGE FROM WEB:

CODE
Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 1994 is not allowed to access /www/uuuq.com/d/a/n/dansag/htdocs/peliculas/pelisa owned by uid 2001 in /www/uuuq.com/d/a/n/dansag/htdocs/peliculas/inc/function.php on line 63

Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 1994 is not allowed to access /www/uuuq.com/d/a/n/dansag/htdocs/peliculas/pelisa owned by uid 2001 in /www/uuuq.com/d/a/n/dansag/htdocs/peliculas/inc/function.php on line 64

Warning: mkdir() [function.mkdir]: Unable to access pelisa/streaming/Accion in /www/uuuq.com/d/a/n/dansag/htdocs/peliculas/inc/function.php on line 70

Warning: mkdir() [function.mkdir]: Unable to access pelisa/descargas/Accion in /www/uuuq.com/d/a/n/dansag/htdocs/peliculas/inc/function.php on line 71

Warning: mkdir() [function.mkdir]: Unable to access pelisa/streaming/Aventura in /www/uuuq.com/d/a/n/dansag/htdocs/peliculas/inc/function.php on line 70

Warning: mkdir() [function.mkdir]: Unable to access pelisa/descargas/Aventura in /www/uuuq.com/d/a/n/dansag/htdocs/peliculas/inc/function.php on line 71

Warning: mkdir() [function.mkdir]: Unable to access pelisa/streaming/Comedia-Humor in /www/uuuq.com/d/a/n/dansag/htdocs/peliculas/inc/function.php on line 70

Warning: mkdir() [function.mkdir]: Unable to access pelisa/descargas/Comedia-Humor in /www/uuuq.com/d/a/n/dansag/htdocs/peliculas/inc/function.php on line 71

Warning: mkdir() [function.mkdir]: Unable to access pelisa/streaming/Terror in /www/uuuq.com/d/a/n/dansag/htdocs/peliculas/inc/function.php on line 70

Warning: mkdir() [function.mkdir]: Unable to access pelisa/descargas/Terror in /www/uuuq.com/d/a/n/dansag/htdocs/peliculas/inc/function.php on line 71

Warning: mkdir() [function.mkdir]: Unable to access pelisa/streaming/Romance-novela in /www/uuuq.com/d/a/n/dansag/htdocs/peliculas/inc/function.php on line 70

Warning: mkdir() [function.mkdir]: Unable to access pelisa/descargas/Romance-novela in /www/uuuq.com/d/a/n/dansag/htdocs/peliculas/inc/function.php on line 71

Warning: mkdir() [function.mkdir]: Unable to access pelisa/streaming/Dibujos-Anime in /www/uuuq.com/d/a/n/dansag/htdocs/peliculas/inc/function.php on line 70

Warning: mkdir() [function.mkdir]: Unable to access pelisa/descargas/Dibujos-Anime in /www/uuuq.com/d/a/n/dansag/htdocs/peliculas/inc/function.php on line 71


i renamed folder pelis to nothing1 but !i cant deleted¡
NDBoost
Safemode restricts a lot of features with PHP.. and i believe mkdir() is one of those functions thats disabled..
http://us2.php.net/manual/en/features.safe...e.functions.php

Unfortunately not going to really have a way to get around this..
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.