I'm trying to get image size so I can make a thumbnail on the fly, the path to the image is kept in a database and the image is in one of many folders. the path saved in the db has the html tag so basically
I'm using str_replace to remove the <img src= and > from the string and I assign the result to a variable ($img)
than I'm trying to use getimagesize($img); but I get this error message
") [function.getimagesize]: failed to open stream: No such file or directory
the thing is if I hardcode the path instead of using the variable it work fine.
Anybody know why and how to make it work with a variable?