title: eval() not working?
body: <p>I'm trying to get the focal length from an image's EXIF data via PHP.</p>
  
  <p>This is the code I've got so far:</p>
  
  <pre><code>$exif = exif_read_data("$photo");
  $length10 = $exif['FocalLength'];
  $length = eval($length10);
  </code></pre>
  
  <p>$length10 in this case returns something like "1050/10" for 105mm.  I don't know why.  All I want to do is have PHP do the math to return 105.  When I run this, though, I get the following error message:</p>
  
  <pre><code>[04-Nov-2012 20:06:39] PHP Parse error:  syntax error, unexpected $end in index.php(52) : eval()'d code on line 1
  </code></pre>
  
  <p>Why?</p>