I am using WAMP. I ran the photo_upload.php code d'loaded from wrox.com. The photo is not displayed after uploading. I cannot figure out where it is being moved after uploading.
Here's the code-
Code:
elseif ( !move_uploaded_file( $_FILES["photo"]["tmp_name"], "\photos" . basename( $_FILES["photo"]["name"] ) ) ) {
echo "<p>Sorry, there was a problem uploading that photo.</p>" . $_FILES["photo"]["error"] ;
}
I created photos folder in the project directory.