p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 (http://p2p.wrox.com/book-beginning-php5-apache-mysql-web-development-isbn-978-0-7645-7966-0-160/)
-   -   Chapter 7 p204,205 issues (http://p2p.wrox.com/book-beginning-php5-apache-mysql-web-development-isbn-978-0-7645-7966-0/73773-chapter-7-p204-205-issues.html)

bakoart April 5th, 2009 07:47 PM

Chapter 7 p204,205 issues
Hey, first time poster here and PHP rookie...

Working with:

Apache 2 Server on remote host
PHP Version 5.2.3-1ubuntu6.5



Got the code on pg's 204 & 205 to upload to both image_table and directory folder...and change gifs and png's images to jpg's...and return to browser as it should as stated in the book. All seems good until I try to fool the code by uploading something other than a jpg, gif or png, .txt file for example. Upon submit, I return about 10 lines of error with NO Sorry, go back and try again lines of text. I've got the code as in the book and have noticed that if I change: if ($type > 3) on page 204 to <3 .....I finaly get the Sorry, go back and try again lines of text on the next page. It appears like the file type integer keys on page 201 don't seem to be filtering out non acceptable file types...IS IT JUST ME???

Any suggestions, cures or similar experiences???...Thanks, BakoArt

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

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