My filesize isn’t working :O. I don’t even know what I did wrong. Here’s my script:
<?php
$size = filesize("http://www.sherman.stonerocket.net/zd/matches.xml");
echo $size;
?>
It returns this error:
Warning: filesize(): Stat failed for http://www.sherman.stonerocket.net/zd/robots.txt (errno=2 - No such file or directory) in /home/sherman/public_html/zd/u1.php on line 2
Any clue what I’m doing wrong? I’ve tried a bunch of files, and they’ve all failed…
Also, I’ve noticed that if I just write the relative directory, it does work. However, I need to run an absolute directory, as the xml file is a higher level than the PHP file. What’s wrong?