Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | 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 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 October 20th, 2004, 01:19 AM
Registered User
 
Join Date: Oct 2004
Location: ipoh, perak, Malaysia.
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.


Reply With Quote
  #2 (permalink)  
Old October 20th, 2004, 10:34 AM
Friend of Wrox
 
Join Date: Jun 2004
Location: Fairfield, Iowa, USA.
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
Reply With Quote
  #3 (permalink)  
Old October 25th, 2004, 07:46 AM
Registered User
 
Join Date: Oct 2004
Location: ipoh, perak, Malaysia.
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.

Reply With Quote
  #4 (permalink)  
Old October 25th, 2004, 10:30 AM
Friend of Wrox
 
Join Date: Jun 2004
Location: Fairfield, Iowa, USA.
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
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
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



All times are GMT -4. The time now is 09:37 PM.


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