function download( $url , $output )
{
$content = file_get_contents( $url );
$file = fopen( $output , "w+" );
fwrite( $file , $content );
fclose( $file );
if( file_exists($output) AND is_file($output ) )
{
return true;
}
else
{
return false;
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.