I have an upload script and need to read the height and width of the image. I tried this but it doesn't seem to work:
Code: Select all
<?php
$im = $_FILES['file']['tmp_name'];
$width = imagesx($im);
$height = imagesy($im);
?>http://au.php.net/manual/en/function.imagesy.php
http://au.php.net/manual/en/function.imagesx.php
Anyone know how I can do it?