Definition:
function mce_put_file( $path, $content ) {}
Parameters
- $path
- $content
Source code
function mce_put_file( $path, $content ) {
if ( function_exists('file_put_contents') )
return @file_put_contents( $path, $content );
$newfile = false;
$fp = @fopen( $path, 'wb' );
if ($fp) {
$newfile = fwrite( $fp, $content );
fclose($fp);
}
return $newfile;
}
2345

February 12, 2011 


No comments yet... Be the first to leave a reply!