-2

I'm creating an importer of products in woocommerce from an xml file . The process fails because there are empty photos that have no weight .

How can I determinate the size (bytes) of a remote file in php ?

THanks Regards

1 Answers1

0

You can try this code:

getimagesize("http://www.example.com/gifs/logo.gif");
Anders
  • 7,818
  • 9
  • 49
  • 80
Harsh Sanghani
  • 1,654
  • 1
  • 11
  • 32