SyntaxFix
Write A Post
Hire A Developer
Questions
Try like this:
list($width, $height) = getimagesize('path_to_image');
Make sure that:
Also try to prefix path with $_SERVER["DOCUMENT_ROOT"], this helps sometimes when you are not able to read files.
$_SERVER["DOCUMENT_ROOT"]