# Warning filesize(): Stat Failed

**URL:** https://forum.kirupa.com/t/warning-filesize-stat-failed/281689
**Category:** Uncategorized
**Created:** [February 12, 2009, 7:26am UTC](https://forum.kirupa.com/t/warning-filesize-stat-failed/281689 "2009-02-12T07:26:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)
#### Post date: [February 12, 2009, 7:26am UTC](https://forum.kirupa.com/t/warning-filesize-stat-failed/281689/1 "2009-02-12T07:26:16Z")

</div>

Hey Guys,

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

```php
$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](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 🙂

Thanks in advance 😃
