Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0
This is the forum to discuss the Wrox book Beginning PHP5, Apache, and MySQL Web Development by Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz, Michael K. Glass; ISBN: 9780764579660
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 6th, 2005, 06:58 AM
Registered User
Join Date: Jul 2005
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sleepyd
Default Connecting to MySQL Server

I am having a problem I do not understand. I have gone through everything in the book and have had no problems until I started to use PHP to connect to the MySQL server (page 96/96) at which point my browser displays the following error message:
"Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\desops\PHP with MySQL\createmovie.php on line 3"

I can connect to the server from the command prompt without no problems and I cannot understand why I am getting this error.

Does anyone out there have any idea what is going on please?


Reply With Quote
  #2 (permalink)  
Old August 4th, 2005, 09:13 AM
Authorized User
Join Date: Aug 2005
Location: , , Canada.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts

I had this same problem yesterday and found an error in my changes to php.ini file. See page 14 in in Chapter 2.

I started with php.ini-dist.
Copy this as php.ini to c:\windows.
Make sure you have not made a mistake in changes to php.ini as per page 16. I had an error in extension_dir = "c:/php/ext (note forward slashes)

See also this URL http://www.cs.wcupa.edu/~rkline/apache-php-win.html

The author has some additional changes to php.ini that I followed.

Hope this helps
Reply With Quote

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
Connecting to MYSQL from C / C++ ? oloeriubogdan Linux 1 December 15th, 2006 10:50 AM
Trouble connecting to MySQL server (CH3) mrouse BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 October 20th, 2005 01:44 PM
Connecting to mySQL WIx ASP.NET 1.0 and 1.1 Basics 3 October 17th, 2004 04:13 PM
list_db.php - Connecting to a MYSQL server phpnukes BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 3 March 3rd, 2004 08:31 PM
connecting mysql with vb ks_anoop MySQL 3 February 5th, 2004 02:43 PM

All times are GMT -4. The time now is 09:46 AM.

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