Download a file and save to path

To do it in PHP:

$f = file_get_contents($url);
file_put_contents($path_to_new_file, $f);

Dear fellow Malaysians, if you like the content of this blog and thinking about to support me to continue writing good content, please consider to sign up for Takaful service from me. I am offering life & accidental coverage plans and medical card too. Kindly message me using the PM box on the sidebar (under profile picture). Thanks ;)

Leave a Reply

Your email address will not be published. Required fields are marked *