%general-entities; ]> $LastChangedBy$ $Date$ <acronym>PHP</acronym>-&php-version; Introduction to <application><acronym>PHP</acronym></application> PHP is the PHP Hypertext Preprocessor. Primarily used in dynamic web sites, it allows for programming code to be directly embedded into the HTML markup. Package information Download (HTTP): Download (FTP): Download size: &php-size; Estimated disk space required: &php-buildsize; Estimated build time: &php-time; <application><acronym>PHP</acronym></application> dependencies Required Optional , , , ClibPDF, , , , QDBM, cdb, , , , GD, , X ( or ), , t1lib, , , , , , , , , or , libmcrypt, mhash, Net-SNMP, SQLite, Dmalloc, mnoGoSearch, Mini SQL, Empress, Birdstep, DBMaker, Adabas, FrontBase, Caudium, WDDX, FDF Toolkit, Hyperwave, Monetra, and MTA Installation of <application><acronym>PHP</acronym></application> You can use PHP for server-side scripting, command line scripting or client-side GUI applications. The book provides instructions for setting up PHP for server-side scripting as it is the most common form. Install PHP by running the following commands: ./configure --prefix=/usr \ --sysconfdir=/etc \ --with-apxs2 \ --with-config-file-path=/etc \ --with-zlib \ --enable-bcmath \ --with-bz2 \ --enable-calendar \ --enable-dba \ --with-inifile \ --enable-exif \ --enable-ftp \ --with-gettext \ --with-iconv \ --with-ncurses \ --with-readline \ --disable-libxml && make && make install && cp php.ini-recommended /etc/php.ini Remove the --disable-libxml switch if you have installed otherwise pear will not be built. PHP has many more configure options that will enable support for certain things. You can use ./configure --help to see a full list of the available options. Also, use of the PHP web site is highly recommended, as their online docs are very good. Configuring <application><acronym>PHP</acronym></application> Config files /etc/php.ini, /etc/pear.conf Configuration Information To enable PHP support in the Apache web server, a new LoadModule (this one should be handled automatically by the make install command) and AddType directives must be added to the httpd.conf file: LoadModule php5_module lib/apache/libphp5.so AddType application/x-httpd-php .php Also, it can be useful to add an entry for index.php to the DirectoryIndex directive of the httpd.conf file. Contents The PHP package contains pear, php, php-config, phpextdist and phpize. Description php php is a command line interface that enables you to parse and execute PHP code. pear pear is the PHP Extension and Application Repository (PEAR) package manager.