<p>how do I get information about a photo like the author, the license using PHP?</p>

This information is all available through the
Flickr API
, if you poke around their docs you may find what you're looking for.