I may have found a problem with example 20-9 rnprofile.php.
While playing around with the site i realized one picture wouldn't re-size correctly. After further investigation I found the file was of type .bmp but it still was still uploaded to the site. Then I tried with a text file and had similar results. Files ended up in .jpg format on the site. Solved the problem by moving the "move_uploaded_file($_FILES['image']['tmp_name'], $saveto);" line of code into each of the acceptable cases, that way the file wouldn't be copied into my website's directory unless it was of acceptable type, this solved the re-size problem as well since no file will be uploaded that would make $typeok false.
Hope that makes sense and helps someone running into the same problem.
Bryan.












