title: PHP/MySQL: Parse html and upload media
body: <p>I have a site created with PHP 4.3 and MySQL. I need a way so a client can send an HTML file to the server and have it parsed and sections inserted into the database. During parsing, any images or other media found will need to be uploaded to the server.</p>
  
  <p>I am not really sure what is the best way to go about this. I was thinking of maybe using jQuery and Ajax to parse the content but what can I do to get the media?</p>
  
  <p>Do you have any better suggestions on how to accomplish this?</p>