spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / perl / xhoo / php1

Developer News
Google Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management

phpHoo, Part I

This tutorial will cover the basics of integrating PHP with a database, in this case, MySQL. MySQL is arguably the fastest SQL server available, and the price can't be beat: It's free for non-commercial purposes. (See the MySQL license for more details). It's my personal favorite amongst SQL engines when performance and development time are factors. The original perlHoo was developed in less than a week. phpHoo was developed to match perlHoo part I in -three hours-, and exceeded perlHoo part II in less than 6 hours over the course of 2 days.

Notes about this Tutorial

PHP is a more structured language than Perl. As such, a linear discussion of phpHoo's internals is not possible. perlHoo is a "top down" linear program. The program begins executing on line one and progresses through the code until the end, with required subroutines at the bottom of the file. PHP is not a linear language. It requires that all user defined functions and methods be defined before they can be called, which means that they appear at the beginning of the source file and the logic which uses them is at the bottom of the file. phpHoo is also a much larger tutorial with a more complex program design. We're covering a lot of topics here, from basic MySQL functionality and database design concepts to PHP constructs, Classes and Object Oriented programming. We'll begin by creating the MySQL database and a Class file to work with that database. After we've done all of that, we can actually sit down and work on phpHoo's internals.

Getting PHP and MySQL installed

This is a usage tutorial and as such, instructions for the installation of PHP or MySQL is beyond the realm of this tutorial. PHP and MySQL will both work on Win32 or Unix platforms. MySQL can be obtained from the MySQL home at http://www.mysql.com. PHP can be obtained at http://www.php.net/. Both sites include pointers and instructions on how to install the software and common problems associated with their install or usage. There are also web archives of the PHP and MySQL mailing lists, which can be a treasure trove of information on how to install and use the software. One searchable site that archives all the major PHP and MySQL mailing lists is at Progressive-Comp, http://www.progressive-comp.com/Lists/.


home / experts / perl / xhoo / php1

http://www.internet.com

Produced by Jonathan Eisenzopf and

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Whitepapers and eBooks

Symantec Whitepaper: Converging System and Data Protection for Complete Disaster Recovery
Intel Whitepaper: Comparing Two- and Four-Socket Platforms for Server Virtualization
IBM Solutions Brief: Go Green With IBM System xTM And Intel
HP eBook: Simplifying SQL Server Management
IBM Contest: Are You the Next Superstar? Join the "Search for the XML Superstar" Contest to Find Out
Intel PDF: Quad-Core Impacts More Than the Data Center
Intel PDF: Virtualization Delivers Data Center Efficiency
Go Parallel Article: PDC 2008 in Review
Avaya Article: Communication-Enabled Mashups: Empowering Both Business Owners and IT
Intel Whitepaper: Building a Real-World Model to Assess Virtualization Platforms
PDF: Intel Centrino Duo Processor Technology with Intel Core2 Duo Processor
Microsoft Article: Build and Run Virtual Machines with Hyper-V Server 2008
  Go Parallel Article: Q&A with a TBB Junkie
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
IBM eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Symantec Whitepaper: Comprehensive Backup and Recovery of VMware Virtual Infrastructure
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Review: Lenovo ThinkPad SL300 · OCZ PC3-10666 Gold 2x1GB Review · Apple Recommends Antivirus for Macs


Created: July 20, 1999
Revised: July 20, 1999

URL: http://www.webreference.com/perl/xhoo/php1/