<?php $dir= "upload"; $file = $_FILES['userfile']['name']; $filename = $_FILES['userfile']['name']; $strUploadDir = generujHaslo() . '.' . $arr["extension"]; if($arr["extension"]=="gif" || $arr["extension"]=="jpg" || $arr["extension"]=="tif" || $arr["extension"]=="TIF" || $arr["extension"]=="tiff" || $arr["extension"]=="TIFF" || $arr["extension"]=="png" || $arr["extension"]=="jpeg" || $arr["extension"]=="GIF" || $arr["extension"]=="JPG" || $arr["extension"]=="PNG" || $arr["extension"]=="JPEG") { if ( $_COOKIE['login'] == 'yy' ) { mysql_query("INSERT INTO `wpisy` (`id`, `uid`, `name`, `waga`, `nazwa`, `wymiary`) VALUES ('', '" . $_COOKIE['id_user'] . "', '" . $strUploadDir . "', '" . $waga . "', '" . $filename . "' , '" . $wymiary . "');" ); ?>
Niestety ani wymiary, ani waga nie chcą się pobrać

Zrobiłem osobną stronę(test pobierania wymiarów pliku):
<?php $filename = 'http://materialybudowlane.com/uploads/5.jpg'; ?>
i oto rezultat:
Kod
Warning: filesize() [function.filesize]: Stat failed for http://materialybudowlane.com/uploads/5.jpg (errno=2 - No such file or directory) in /...../test.php on line 4
http://materialybudowlane.com/uploads/5.jpg:
http://materialybudowlane.com/uploads/5.jpg:
Proszę o pomoc...