Warning filesize(): Stat Failed

Hey Guys,

Just wondering why this error comes up for me and what it means:
Here is the code i’m doing:

$xml_file = "http://www.mywebsite.com/myxmlfile.xml";
echo filesize($xml_file);

The error that comes up for me is the following:
Warning: filesize(): Stat failed for http://www.mywebsite.com/myxmlfile.xml

I’m just wondering if there is something wrong about how I am going about this or not and what this error means?

Look Forward to your answers :slight_smile:

Thanks in advance :smiley: