Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Beginning PHP 5.3
|
BOOK: Beginning PHP 5.3
This is the forum to discuss the Wrox book Beginning PHP 5.3 by Matt Doyle; ISBN: 978-0-470-41396-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP 5.3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 16th, 2013, 09:24 AM
Registered User
 
Join Date: Jul 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Photo Upload form photos are not displayed

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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 7, Online Photo Album, Ajax, cannot upload to subdirectories - here is the so kenj BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 0 March 31st, 2010 09:19 PM
Problem in upload photo to domain server krishnamoorthymca JSP Basics 4 April 20th, 2007 12:49 AM
Problem in upload photo to domain server krishnamoorthymca Linux 0 April 4th, 2007 03:48 AM
Problem in upload photo to domain server krishnamoorthymca J2EE 0 April 4th, 2007 01:03 AM
how to make browser....and upload photo.. jhanny007 PHP How-To 2 March 29th, 2007 02:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.