 |
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 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
|
|
|
|

May 9th, 2009, 04:56 PM
|
|
Registered User
|
|
Join Date: May 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|
|

May 11th, 2009, 05:23 AM
|
|
Friend of Wrox
|
|
Join Date: Sep 2005
Posts: 166
Thanks: 2
Thanked 33 Times in 33 Posts
|
|
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
|
|

May 11th, 2009, 12:43 PM
|
|
Registered User
|
|
Join Date: May 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|
 |