Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 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
  #1 (permalink)  
Old December 16th, 2007, 07:24 AM
Registered User
 
Join Date: Dec 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default Chapter 7 - Problem with filepath on Image Upload

I'm stuck on the first exercise because I think I have the file path wrong. This is how I entered the path (replacing 'user' with my username).

/home/user/public_html/beginning_amp/chapter7/images/

And this is the error message that pops up. Any ideas?


Warning: move_uploaded_file(c:/home/user/public_html/beginning_amp/chapter7/images/photo.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/user/public_html/beginning_amp/chapter7/check_image.php on line 21

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpm9E8vf' to 'c:/home/user/public_html/beginning_amp/chapter7/images/photo.jpg' in /home/user/public_html/beginning_amp/chapter7/check_image.php on line 21

The Following User Says Thank You to btaysisson For This Useful Post:
  #2 (permalink)  
Old December 18th, 2007, 05:54 AM
Registered User
 
Join Date: Dec 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default

solved it myself. I had kept the "c:" from the example.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload image-create & save thumbnail-display image angshujit ASP.NET 2.0 Professional 6 July 11th, 2013 10:34 PM
Chapter 6 FCKeditor image upload hdpark BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 12 February 19th, 2008 01:04 PM
Chapter 7 - Image Problem SoftMind BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 4 June 19th, 2006 04:30 PM
chapter 7 image upload on Mac OS X laolaonk BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 February 19th, 2006 10:20 PM
IE filepath bug.. no end of grief.. Phylobates XSLT 7 August 12th, 2005 02:55 AM





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