public static function saveFile($input, $fileName)
    {
        $fh = fopen($fileName, 'w') or die('cant open file');
        fwrite($fh, $input);
        fclose($fh);
    }
public static function saveFile($input, $fileName)
    {
        $fh = fopen($fileName, 'w') or die('cant open file');
        fwrite($fh, $input);
        fclose($fh);
    }
public static function saveFile ( $ input , $ fileName ) { $ fh = fopen ( $ fileName , 'w' ) or die ( 'cant open file' ) ; fwrite ( $ fh , $ input ) ; fclose ( $ fh ) ; }
Saves the files

@param string $input input stream.
@param string $fileName fileName along with the full path.
Saves the files