Rename files in PHP
<p>How do I rename files by appending .jpg to the name. The files have no extensions as shown in the screenshot. But I would like to add .jpg to each one - is there a php function for doing this sort of bulk renameing?</p>

<p><img src="http://www.jroller.com/sennheiserheadphones/resource/imagename.jpg" alt="enter image description here"></p>
