php - mkdir() throws warning message -
what's error in here?
 <?php  define('tmp_folder','temp');   $temp_dir = $this->dir['root'].$this->config['sep'].tmp_folder;   //$temp_dir = c:\xampp\htdocs\xxx\temp  //$this->dir['root'] = c:\xampp\htdocs\xxx   if(!file_exists($temp_dir) && !is_dir($temp_dir)){         chdir('../');         mkdir(tmp_folder, 0744);     }  ?> this throws warning like:-
warning: mkdir(): file exists in c:\xampp\htdocs\xxx\yyy\display.php on line 49
i think easy job. but, can't understand what's this?
remove below line , try
 chdir('../'); 
Comments
Post a Comment