Jabbamonkey
08-10-2002, 03:52 PM
I am attempting to use the filesize() function, to determine the file size of certain videos. BUT, unfortunately, it's not working for some reason. Should I be using the full path when trying to get the file size? (i.e. www.abc.com/media/video/filename.wmv) Or should I be using something else?
See below for the code:
========================================
// I've checked the path to the videos, and these work
$thevideofilehi = $baseurl."media/video/".$videos["videofile"]."_high.".$videos["videofiletype"];
$thevideofilelo = $baseurl."media/video/".$videos["videofile"]."_low.".$videos["videofiletype"];
$thevideosizehi = filesize($thevideofilehi);
$thevideosizelo = filesize($thevideofilelo);
echo "hi ".$thevideosizehi."<br>";
echo "hi ".$thevideosizelo."<br>";
========================================
Any ideas?
Jabbamonkey
See below for the code:
========================================
// I've checked the path to the videos, and these work
$thevideofilehi = $baseurl."media/video/".$videos["videofile"]."_high.".$videos["videofiletype"];
$thevideofilelo = $baseurl."media/video/".$videos["videofile"]."_low.".$videos["videofiletype"];
$thevideosizehi = filesize($thevideofilehi);
$thevideosizelo = filesize($thevideofilelo);
echo "hi ".$thevideosizehi."<br>";
echo "hi ".$thevideosizelo."<br>";
========================================
Any ideas?
Jabbamonkey