Hi,
is it with PHP possible to view an external files size? A file on another server that is: http://www.what.ever.com/file.mp3
If so, what would that could look like?
echo filesize(http://www.what.ever.com/file.mp3');
I think it should work.
I don't. I think thos commands only work on local files.
Have you tried it? If it doesn't work, then this does for sure:
$file = 'http://server/file.mp3';
$handle = fopen($file, r);
while (!feof($handle)) $data .= fread($handle,1);
echo strlen($data);
Please try it!