p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 (http://p2p.wrox.com/forumdisplay.php?f=123)
-   -   Chapter 7 - Problem with filepath on Image Upload (http://p2p.wrox.com/showthread.php?t=64604)

btaysisson December 16th, 2007 07:24 AM

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


btaysisson December 18th, 2007 05:54 AM

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



All times are GMT -4. The time now is 09:45 PM.

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