public function putFile($file, $contents)
    {
        $this->mkdir(dirname($file));

        file_put_contents($file, $contents);
    }
public function putFile($file, $contents)
    {
        $this->mkdir(dirname($file));

        file_put_contents($file, $contents);
    }
public function putFile ( $ file , $ contents ) { $ this -> mkdir ( dirname ( $ file ) ) ; file_put_contents ( $ file , $ contents ) ; }
Put contents into a file.

@param $file
@param $contents
Put contents into a file .