madmatter23
03-09-2008, 06:12 PM
Hi,
I'm trying to run a filesize() function so that I can insert the result into the length field of an xml enclosure tag. But...the is returning an error like this for each enclosure:
<b>Warning</b>
: filesize() [
<a href="function.filesize">function.filesize</a>
]: stat failed for http://www.maggiepascal.com/show_audio/maggie_022408b.mp3 in
<b>/home/maggiepa/public_html/podcast1.php</b>
on line
<b>56</b>
I've tried using the absolute url and also $_SERVER['DOCUMENT_ROOT'].$filename, but it doesn't seem to be able to find the file info.
The permissions for the file and folder are set to 777.
Does anyone know why this would happen?
I'm trying to run a filesize() function so that I can insert the result into the length field of an xml enclosure tag. But...the is returning an error like this for each enclosure:
<b>Warning</b>
: filesize() [
<a href="function.filesize">function.filesize</a>
]: stat failed for http://www.maggiepascal.com/show_audio/maggie_022408b.mp3 in
<b>/home/maggiepa/public_html/podcast1.php</b>
on line
<b>56</b>
I've tried using the absolute url and also $_SERVER['DOCUMENT_ROOT'].$filename, but it doesn't seem to be able to find the file info.
The permissions for the file and folder are set to 777.
Does anyone know why this would happen?