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 December 20th, 2004, 05:59 PM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Urgent help required

When you connect to the MySQL server (p95) I get that you have to type:

$host = "localhost"; ...etc

but where do you type this and how do you send off the command to the server?

Then on Page 96 it says to open your browser and type a PHP program, what browser?

Thanks!

 
Old December 20th, 2004, 11:26 PM
Authorized User
 
Join Date: Dec 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The code at the bottom of pg. 95 and top of pg. 96 are two different ways that you can have code in a php script that allows you to connect to the MySQL server. The book is not asking/telling you to type the code anywhere specifically. It's basically demonstrating that there are two ways to type code in a php script that will allow you to connect to the MySQL server. Now as you continue through the book, you'll observe that the second way is the one typically used throughout the book. For example, look at the 4th line of code in the code block at the bottom of pg. 96, and you'll see the code in use that matches the 2nd way.

Moving on to your second question, I think it's a clerical error in the book when it says to open a browser and type in the code. You should actually type the code into a text editor such as Notepad and save the file as createmovie.php in your document root. Then open the file in your browser(Internet Explorer) with the following line: http://localhost/createmovie.php

Or, if you have your Apache server setup using port 8080, use the following: http://localhost:8080/createmovie.php

I hope this helps.






Similar Threads
Thread Thread Starter Forum Replies Last Post
required urgent help deb_kareng C# 1 September 5th, 2006 08:49 AM
Urgent help required! mani84 ADO.NET 1 May 19th, 2006 02:34 AM
urgent reply required uitian123 Crystal Reports 0 August 19th, 2005 12:48 AM
urgent reply required ham General .NET 36 August 30th, 2004 02:58 AM
stored procedure urgent help required sarfraz Crystal Reports 0 April 19th, 2004 08:10 AM





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