_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition1 Wiley and the book authors, 2002 PHP Bible Chapter 3 : Getting Started with PHP
_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition2 Wiley and the book authors, 2002 Summary Deciding to outsource or self-host Finding the right ISP Avoiding common hosting pitfalls Installing PHP Choosing a PHP development tool
_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition3 Wiley and the book authors, 2002 Hosting vs. DIY The ISP option Remote hosting is a popular option since many companies offer PHP-enabled websites ISP may handle hardware, software (& upgrades), InterNIC registration, IP addressing, DNS, Mail servers, bandwidth, power (including backup), backups, & security Must play by their rules, may not be configured optimally for your needs, other applications may not be available, may not allow “objectionable” content, may not allow unsolicited mailings (configuration may not allow the website to some people who visit the site), limited hardware/software configurations, may limit bandwidth, limited disk space. Primary problem: lack of control for QOS
_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition4 Wiley and the book authors, 2002 Hosting vs. DIY Self-hosting Price of connectivity continues to drop More fun? Greater control of configuration for optimization or adding special features. Many ISPs may not allow you to run a server off your Internet connection You have no-one to blame but yourself if things go wrong Collocation (or colocation/colo) Maintain most control of your equipment, but since it’s located at the ISP, you don’t need to worry about power & bandwidth Dedicated server Similar to collocation, except the ISP owns the hardware, you just “rent” it.
_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition5 Wiley and the book authors, 2002 Installing PHP Prerequisites: Need a server or workstation with enough RAM Unix or Unix variant (e.g. Linux, xBSD), Mac OS X, or Windows (not recommended for production) Working, dedicated Internet connection PHP-supported web server (Apache, IIS, Netscape) PHP-supported database server (if necessary) All applications used by PHP must be installed prior to beginning the installation of PHP Go to for specific installation instructions for your OS and web serverhttp://
_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition6 Wiley and the book authors, 2002 Development tools No plush development environment with wizards and drag-and- drop icons and built-in graphics manipulation (don’t use FrontPage for writing PHP). Zend Studio ($195) is a dedicated application development environment for PHP (free version available). Will allow you to run scripts without uploading them to the server and viewing them in your browser. Can step through the code line-by-line to figure out where your errors may exist Homesite ($95) is an HTML editor which provides syntax highlighting for PHP Emacs (free) is a code editor which may be difficult to learn to use but has many options for different types of code ( Other editors located at