westman Posted October 8, 2012 Share Posted October 8, 2012 hi all,say if i have an image "image4.jpg"how do i get the size in a $ like "200x400"? Link to comment Share on other sites More sharing options...
niche Posted October 9, 2012 Share Posted October 9, 2012 Give the image a height and width. How does the dollar sign fit? Link to comment Share on other sites More sharing options...
kanchatchai Posted October 9, 2012 Share Posted October 9, 2012 http://php.net/manual/en/function.getimagesize.php 1 Link to comment Share on other sites More sharing options...
niche Posted October 9, 2012 Share Posted October 9, 2012 I think kanchatchai understood your question. Link to comment Share on other sites More sharing options...
westman Posted October 9, 2012 Author Share Posted October 9, 2012 thank you so mush list($width, $height, $type, $attr) = getimagesize("img/flag.jpg"); works well Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now