uploaddir = $rows[0]; $this -> aim = $rows[1]; $this -> path = $filename; fclose($filehandler); } // funkcja do poprawy wykrzacza mkdir() function create() { $this -> uploaddir = "/home/infsgrp/redbull/public_html/test/upload/"; if (! (file_exists($this->uploaddir) && is_dir($this->uploaddir)) ) { echo "kat 1"; mkdir ($this->uploaddir, 0755); } $this -> filesdir = "/home/infsgrp/redbull/public_html/test/files/"; if (! (file_exists($this->filesdir) && is_dir($this->filesdir)) ) { echo "kat 2"; mkdir ($this->filesdir , 0755); } $this -> path = '/home/infsgrp/redbull/public_html/test/dir.ini'; $filehandler = fopen($this -> path, "w+") or die("Can't create file"); if (!fwrite($filehandler, $this -> uploaddir.":".$this -> filesdir)) echo "Error occured during saving dir variables !\n".$this -> uploaddir."\n".$this -> filesdir; fclose($filehandler); } } ?>