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 April 24th, 2005, 01:16 PM
Registered User
 
Join Date: Apr 2005
Location: Cupertino, CA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 7 check_image.php, undefined variable

Hello all,

On page 199 of PHP5, Apache.… 7th line from the bottom of check_image.php;
<strong><?php echo $image_name; ?></strong><br>
contains an undefined variable $image_name could this be $ImageName instead?
I don't know what the intention of this line is. It is ignored by the browser as is shown by Figure 7-3

RonB

  #2 (permalink)  
Old June 1st, 2005, 04:55 PM
Authorized User
 
Join Date: May 2005
Location: , , .
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ron, I haven't got PHP5, Apache .. book, but if you post back the full code, I'll have a look..

It could be you found the first piece of errata..

  #3 (permalink)  
Old June 3rd, 2005, 10:31 PM
Authorized User
 
Join Date: Jun 2004
Location: , , .
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Good catch!

That line should actually read:
<strong><?php echo $image_caption; ?></strong><br>

(Actually if you look at the later revision where those lines were deleted, it actually does use $image_caption...this first oops must've snuck past our crack testing team. :) )



Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Undefined offset: 1 chapter 5 form.php sreenivasharish BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 November 9th, 2008 06:08 PM
php question, undefined variable benappease Beginning PHP 0 December 6th, 2007 02:35 PM
Ch 7 check_image.php mattcw BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 October 10th, 2006 12:26 PM
XSLT & PHP -undefined variable- is . a culprit? underdog XSLT 3 May 8th, 2006 10:04 AM
Undefined Variable - Chapter 4 JohnAlden BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 21 August 25th, 2004 11:55 AM





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