I'm trying to figure out the size of an image. According to the PHP manual, I have to use the GetImageSize() function.
Well, for some reason, it's not working. Here's my coding:
$size = GetImageSize("/userpics/sslcg.jpg"); // LINE 2
//print "<img src=\"/userpics/sslcg.jpg\">";
//The above line printed the picture correctly.
I know that this picture exists in the userpics directory and everything is spelled correctly. Below is the error I get:
Warning: Unable to open /userpics/sslcg.jpg in /var/www/html/test.php on line 2
I'm a little puzzled. Can you someone help me out?