Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143
This is the forum to discuss the Wrox book Beginning PHP 6, Apache, MySQL 6 Web Development by Timothy Boronczyk, Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz; ISBN: 9780470391143
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 9th, 2009, 04:56 PM
Registered User
 
Join Date: May 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Will the code in the book work in PHP5?

I am just wondering, since PHP6 is supposed to be a new build. I am having some trouble with the code in Chapter two, specifically pg. 45. The code is supposed to post a username and password from login.php to movie1.php. But when I hit the submit button, I get an Apache error:
Parse error:syntax error, unexpected $end in E:\Apache2.2\htdocs\movie1.php on line 35.
Line 35 is the last line of the movie1.php page. I have gone over the code several times and have found no syntax errors. What could be the problem?
Reply With Quote
  #2 (permalink)  
Old May 11th, 2009, 05:23 AM
Friend of Wrox
Points: 894, Level: 11
Points: 894, Level: 11 Points: 894, Level: 11 Points: 894, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2005
Location: London, , United Kingdom.
Posts: 166
Thanks: 2
Thanked 33 Times in 33 Posts
Default

Hi pooch,

You get this error if you haven't closed a statement - usually a bracket or a curly brace in an if statement, or you haven't ended the php block with ?>

Have you tried downloading and running the chapter 2 code from the Wrox site (link above)? I ran it on PHP5 and had no problems. If you can't see why your error is happening, compare your code to the downloaded stuff.

Phil
Reply With Quote
  #3 (permalink)  
Old May 11th, 2009, 12:43 PM
Registered User
 
Join Date: May 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default php code, ch 2

Hi Phil,
Thanks for your reply. I haven't run the code from the book yet, because it is the finished project at the end, and I am in the middle of the chapter right now. Just wanted to get all of the examples working one at a time. I seem to be comprehending it very well this way. Anyway, I will search through the code again until i find the error. Thanks again,
Pooch
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
does not work register.php in ch 11 begining php5 tanvir_math BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 3 February 7th, 2007 05:03 PM
PHP5 example code PKHG Pro PHP 1 July 4th, 2006 11:17 AM
I cannot get this code to work , from the book/dl titanvic BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 April 20th, 2005 12:33 AM
Code from Book did not work! mnongkhlaw Wrox Book Feedback 2 October 28th, 2003 12:34 AM
Code from Book did not work! mnongkhlaw Classic ASP Databases 0 October 27th, 2003 07:30 AM



All times are GMT -4. The time now is 04:39 AM.


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