ho scoperto l'arcano
Questo codice funziona:
Ora però devo parametrizzare il nome immagine per poter utilizzare filesize() magari agendo sulla stringa $content...Codice PHP:
<?php
$content = file_get_contents("http://www.yoursite.com/immagini/immagine.jpg");
$handle = fopen("$content", "w+");
fwrite($handle, $content);
fclose($handle);
echo size . ': ' . filesize('immagine.jpg') . ' bytes';
?>![]()