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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -