I was wondering how can I find the width of an image using php.
Use the GD libraries imagesx function, take a look at the manual page here.