Язык программирования PHP

         

devel The following NEW packages


[root@greydragon apt]# apt-get build-dep mod_php Reading Package Lists... Done Collecting File Provides... Done Building Dependency Tree... Done Note, selecting libgdbm-devel instead of gdbm- devel The following NEW packages will be installed: apache-devel bison byacc flex libexpat-devel libgdbm-devel libltdl libmm-devel libpam-devel libtool 0 packages upgraded, 10 newly installed, 0 removed and 73 not upgraded. Need to get 937kB of archives. After unpacking 2357kB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 ftp://ftp.altlinux.ru ALTLinux/main byacc 1.9-ipl9mdk [31.8kB] ..... Get:10 ftp://ftp.altlinux.ru ALTLinux/main libtool 2:1.4.2-alt0.2 [302kB] Fetched 937kB in 9m19s (1675B/s) Executing RPM (/bin/rpm -Uvh --fancypercent --oldpackage)... Preparing... ################################################### [100%] .... [root@greydragon apt]# apt-get install mod_php Reading Package Lists... Done Collecting File Provides... Done Building Dependency Tree... Done The following NEW packages will be installed: mod_php 0 packages upgraded, 1 newly installed, 0 removed and 73 not upgraded. Need to get 46.6kB of archives. After unpacking 69.2kB of additional disk space will be used. Get:1 ftp://ftp.altlinux.ru ALTLinux/main mod_php 1:4.3.0-alt0.cvs20030207 [46.6kB] Fetched 46.6kB in 24s (1918B/s) Executing RPM (/bin/rpm -Uvh --fancypercent --oldpackage)... Preparing... ################################################### [100%] 1: mod_php ################################################### [100%] Shutting down httpd: [ OK ] Checking configuration sanity for httpd: [ OK ] Starting httpd: [ OK ]
Листинг 1.0. Результат работы менеджера пакетов Synaptic
Закрыть окно

<html> <head> <title>Пример</title> </head> <body> <?php echo "<p>Привет, я – скрипт PHP!</p>"; ?> </body> </html>
Пример 1.1. Простой html- файл со встроенным кодом на РНР
Закрыть окно
Содержание раздела