-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

user2663914
  • 65
  • 1
  • 6

1 Answers1

0

You can try this code:

getimagesize("http://www.example.com/gifs/logo.gif");
Anders
  • 8,307
  • 9
  • 56
  • 88
Harsh Sanghani
  • 1,666
  • 1
  • 14
  • 32