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
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
You can try this code:
getimagesize("http://www.example.com/gifs/logo.gif");