how can i get the size of an image that not on my server using this command imagesx ?

how can i get the size of an image that not on my server using this command imagesx  ?
mgtm3Asked:
Who is Participating?
 
Roger BaklundConnect With a Mentor Commented:
Why do you have to use imagesx? That would require that you first load the image into php, using for instance imagecreatefromjpeg(), if it is a jpeg. It's easier to use getimagesize():

http://php.net/manual/en/function.getimagesize.php
0
 
marchentConnect With a Mentor Commented:
Use the example code from the provided link.
http://icfun.blogspot.com/2008/11/php-get-remote-file-size.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.