Wrox Programmer Forums
|
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
 
Old October 20th, 2004, 01:19 AM
Registered User
 
Join Date: Oct 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to fhzaki
Default Needing help for chapter 1

Hi everybody, I am Zaki from Malaysia. I just bought your book and I stack with chapter 1. I’m using these below for windows binary:

apache_2.0.50-win32-x86-no_ssl
mysql-4.0.21-win
php-4.3.3-Win32

I’m install it on D: drive with windows 2000 pro sp3

and your recommendation is
Apache: Version 2.0.47
MySQL: Version 4.0.15a
PHP: Version 4.3.3

I successfully install Apache and PHP. I can run phpinfo(); , but not

<?php
echo “If this works we <i>really</i> did it!”;
?>

it seem not run very well for any coding PHP, I’ll get an error:

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in D:\Program Files\Apache Group\Apache2\myweb\phptest.php on line 7

And this error for Mysql

D:\mysql\bin>cd
D:\>NET START MySql
The MySql service is starting.
The MySql service could not be starte

A system error has occurred.

System error 1067 has occurred.

The process terminated unexpectedly.


 
Old October 20th, 2004, 10:34 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think you did a copy and paste of the code from the book electronic version, which can give you problems. Look really carefull at the kind of quotes this statement is using:
Code:
echo “If this works we <i>really</i> did it!”;
Change it to this and it should work(Notice that I am using different quotes).
Code:
echo "If this works we <i>really</i> did it!";
 With regard to your mysql problem, I had the same problem and this is what I did to solve it. Run winmysqladmin.exe which should be inside the bin directory and this will create a file that is needed to the mysql service deamon to start.

Let me know if that solved your problems.


Christian
 
Old October 25th, 2004, 07:46 AM
Registered User
 
Join Date: Oct 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to fhzaki
Default

Hi Christian,
I did copy and paste from the electronic version, and now it work. But when i run another more advance code from the book, the problem still same ,

Now I can use my MySql without problemo.

Thank You.

 
Old October 25th, 2004, 10:30 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Default

When you copy a paste sometimes you get this strange quotes. You can either copy and paste the code from the cd that comes with the book which has the code examples on the book(You can also download this code at http://www.wrox.com/WileyCDA/WroxTit...load_code.html) or you can make sure to replace the strange quotes with the usual ones(Use Find and replace for that)

Hope that helps.

Christian





Similar Threads
Thread Thread Starter Forum Replies Last Post
needing help with mysql stuff in ch 3 skafreak121 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 June 27th, 2005 01:39 AM
Newbie Needing Help reverett Classic ASP Basics 5 May 19th, 2005 06:14 PM
needing help about date time picker anilkumarindiaa BOOK: Beginning Access VBA 2 January 11th, 2004 02:59 PM
needing help for formula editor in crystal report anilkumar Crystal Reports 1 January 7th, 2004 04:13 PM





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