/** * Create .htaccess file * * The method will create .htaccess file with contents 'AddType application/octet-stream .wpress' * * @param string $path Path to the .htaccess file * @return boolean|null */ public static function create( $path ) { $contents = "<IfModule mod_mime.c>\nAddType application/octet-stream .wpress\n</IfModule>"; return Ai1wm_File::create( $path, $contents ); }
/** * Create a index.php file * * The method will create index.php file with contents '<?php // silence is golden' without the single quotes * at the path specified by the argument. * * @param string $path Path to the index.php file * @return boolean|null */ public static function create( $path ) { $contents = '<?php // silence is golden'; return Ai1wm_File::create( $path, $contents ); }