I'm loading images into a gallery and I need to get their width and height. The image names are stored in a mysql database, and the images themselves in a directory in my public_html.
I'm retrieving the image names and giving them the variable $image.
I'm trying to use:
imagesx('pics/main'.$image);
It's not working, presumably because of the concatenated variable that I've added to the end of the string. I'm sure there's a fairly simple way to convert what's between the brackets above into a string that imagesx can use. Can anyone help me out?
I'm retrieving the image names and giving them the variable $image.
I'm trying to use:
imagesx('pics/main'.$image);
It's not working, presumably because of the concatenated variable that I've added to the end of the string. I'm sure there's a fairly simple way to convert what's between the brackets above into a string that imagesx can use. Can anyone help me out?