Open Madhan-Tradezap opened 3 years ago
Hi i want to copy image from URL to Azure storage using php
i am using PHP V8 and i already use file_put_contents to store image from url. How can we do it in Azure Blob Service.
In Regular PHP function
$image_url = "https://lh3.googleusercontent.com/ogw/ADea4I6YscwyB6zY_kLrgUwbZsPx32Fz8bq38jK1AzBo=s32-c-mo"; $pt_source = file_get_contents_curl($image_url); $file_name = "test.png"; $pt_img_to = $fixedDir . $file_name; file_put_contents($pt_img_to, $pt_source);
Hi i want to copy image from URL to Azure storage using php
i am using PHP V8 and i already use file_put_contents to store image from url. How can we do it in Azure Blob Service.
In Regular PHP function
$image_url = "https://lh3.googleusercontent.com/ogw/ADea4I6YscwyB6zY_kLrgUwbZsPx32Fz8bq38jK1AzBo=s32-c-mo"; $pt_source = file_get_contents_curl($image_url); $file_name = "test.png"; $pt_img_to = $fixedDir . $file_name; file_put_contents($pt_img_to, $pt_source);