Title: Getting Started: PHP Web Development
1Getting Started PHP Web Development
- Bill Barnett
- ProbascoSoft IT Solutions
- lt bill.barnett_at_probascosoft.comgt
- OINK-PUG
- April 21, 2005
2Quote 1
- Open source stacks such as XAMPP from Apache
Friends are simplifying open source development
by making it easier to write and distribute
applications in a stable and standardized
environment. Traditionally, AMPP -- Apache,
MySQL, PHP, and Perl -- have all been installed
and configured as separate products. The trend of
combining them into integrated middleware stacks
promises to make open source development more
competitive with J2EE application development,
at least for low-end applications.
- Java 2 Enterprise Edition dramatically changed
the software landscape by providing an integrated
middleware stack that greatly simplified the task
of writing and deploying Java applications. - Open source stacks such as XAMPP are still quite
simple and rudimentary when compared with J2EE,
but they are nevertheless an important step on
the way to fuller systems integration. - PHP 5.0 (which makes PHP fully object oriented)
is a good indicator that this trend will
accelerate.
3Introducing XAMPP 1
- It is easy to install and set up.
- It contains a number of useful packages that make
it easy to do things like generate traffic
reports and accelerate PHP content. - It has been thoroughly tested on the SUSE, Red
Hat, Mandrake, and Debian Linux distributions, as
well as on Windows and Solaris.
4Introducing XAMPP 1
- Basic packages include system, programming, and
server software - Apache, the famous Web server
- MySQL, an excellent, free, open source database
- PHP, the programming language (in versions 4.3.8
and 5.0.1 at the time of this writing) - Perl, the programming language
- ProFTPD, an FTP server
- OpenSSL, for secure sockets layer support
5Introducing XAMPP 1
- XAMPP includes the following graphics-related
packages - GD, the "Graphics Draw" library
- libpng, the official PNG reference library
- libjpeg, the official JPEG reference library
- ncurses, the character graphics library
6Introducing XAMPP 1
- And what would an integrated stack be without
some database packages such as - gdbm, the GNU implementation of the standard
UNIX dbm library - SQLite, an extremely small, zero-configuration
SQL database engine - FreeTDS, a database library that gives UNIX and
Linux programs the ability to talk to Microsoft
SQL and Sybase databases
7Introducing XAMPP 1
- For XML development, XAMPP includes the
following - expat, an XML parser library
- Salbotron, an XML toolkit
- libxml, an XML C parser and toolkit for GNOME
8Introducing XAMPP 1
- For PHP development, XAMPP includes the
following - PEAR, the PHP library
- A pdf class that generates dynamic PDF documents
with PHP - TURCK MMCache, a PHP performance enhancer
9Introducing XAMPP 1
- And finally, XAMPP demonstrates its versatility
by including the following packages - zlib, a compression library
- mod_perl, which embeds a persistent Perl
interpreter in Apache - gettext, a toolset that assists GNU packages in
producing multi-lingual messages - mcrypt, an encryption program
- Ming, a Flash (SWF) output library
- Freetype2, a software font engine
- IMAP C-Client, a mail program API
10Enough already!
- I got XAMPP let the install begin!!!
11Installation continued
12Installation continued
13Installation continued
14Installation continued
15Installation continued
16Installation continued
17Installation complete!
18XAMPP Control
19Starting Apache MySQL
20Were up!
21Check the Status
22Lets secure MySQL
23Using phpMyAdmin
24Update query complete
25Update phpMyAdmin
26More about security
- Check the Security link
- XAMPP demo pages
- phpMyAdmin
- PHP Safe Mode
27The Eclipse IDE
- The goal of Eclipse is to define for the
industry a development platform which is freely
licensed, open source and provides support for
the full breadth of the application lifecycle, in
many disparate problem domains, across the
development and deployment platforms of choice.
28But what does it do?
- Provides support for multiple operating
environments and multiple programming languages.
Such as - Java
- C/C
- Modeling (BPM) Testing (XUnit)
- Web Tools (including PHP!)
- All this on any OS with a JVM.
29Im convinced!
- Lets get it!!!
- Eclipse SDK
- PHPEclipse
- And install it!!!
30Installation is E-A-S-Y!!!
You do have a JVM, dont you?
31Select Your Workspace
32Voilá!
33Wheres the PHP Perspective?!
34Adding PHPeclipse
35A Caveat!
- Note Eclipse 3.x caches all plugin.xml files
into a single repository for quicker loading. If
you used eclipse before installing PHPeclipse,
you should start eclipse once with the -clean
option. This -clean forces Eclipse to rebuild
that repository. This applies to anything that is
installed into eclipse by unzipping it into its
plugins folder. 2
36Ah, The Command Line
37One Quick ( Handy) Apache Configuration Change
DEVELOPMENT ENVIRONMENT ONLY!!!
38Lets Create A Project!
39HmmmWhat Would Be A Good Name?
40Finally, An Index File
41Is That Cool?!
42References
- 1 Frantzell, Nils-Erik. Install XAMPP for easy,
integrated development. 30 Nov. 2004. April 2005.
lthttp//www-106.ibm.com/developerworks/linux/libra
ry/l-xampp/gt. - 2 PHPeclipse installation for Eclipse 3.x. 4
Dec. 2004. April 2005. lthttp//phpeclipse.de/tiki-
index.php?pagePHPeclipseinstallationforEclipse
3.xgt.
Resources
ApacheFriends.Org (XAMPP) - http//www.apachefrien
ds.org/en/ PHPeclipse - http//www.phpeclipse.de/
phpMyAdmin - http//www.phpmyadmin.net/home_page
/index.php Eclipse Perl Integration -
http//e-p-i-c.sourceforge.net/ (Excellent
regular expression checker!)
43(No Transcript)