01 1-1 PHP 1-2 PHP 1-3 MySQL 1-4 1-5
http://w3techs.com/technologies/history_overview/programming_language w3techs.com (Server-side) 2012 7 77.8% PHP PHP PHP PHP 1-1 PHP PHP HTML Script Windows ASP(Active Server Page) Personal Home Page Hypertext Preprocessor PHP UNIX Windows PHP Windows Windows UNIX 2
01 1-1-1 Unix(Like) PHP Linux FreeBSD Web Server Linux FreeBSD Apache MySQL PHP 1-1-2 Windows Windows NT Windows XP Windows 7 Windows 2012 Server PHP Windows (NT XP 7 2012 Server) IIS Apache MySQL ACCESS SQL-Server PHP Windows MySQL for Win32 30 Windows 3
1-2 PHP PHP (HTML-embeded) PHP HTML PHP *.php test.php <html> <body> <? echo date("y-m-d");?> Apache test.php <html> <body> 2012-09-01 <body> </html> test.php HTML HTML PHP HTML IE FireFox 4
01 HTML Web Server HTML Web Server HTML CGI CGI PHP Web Server Web Server PHP PHP Database Server Database Server Database Server Database Server PHP PHP Web Server Web Server 5
1-3 MySQL Office Access Access Access PC (For Single User) Multi-user SQL Server SOHO MySQL (Multi-thread) (Multi-user) (Relational Database Management System) C C++ Java Perl PHP 1-4 Apache PHP MySQL PHP 1-5 / /AppServ/ : Appserv / /MyODBC / : MyODBC-3.51.06.exe / / 6
01 1. HTML Hyper Text Markup Language 2. PHP HTML 3. Access 4. Linux+Apache+MySQL+PHP 5. PHP 1. (1) MySQL (2) PHP (3) Apache (4) mlinux 2. (Web Server) (1) MySQL (2) PHP (3) Apache (4) mlinux 1. PHP 2. CGI 3. ASP 7
1. O 2. O 3. 4. O 5. 1. 1 2. 3 1. Hypertext Preprocessor 2. Common Gateway Interface 3. Active Server Page 8
02 2-1 AppServ 2-2 Apache 2-3 php.ini 2-4 httpd.conf
(Apache) (MySQL) (PHP) (phpmyadmin) AppServNetwork AppServ AppServ Windows AppServ AppServNetwork Released Step by Step AppServ AppServNetwork : http://www.appservnetwork.com/ Apache Server : http://www.apache.com MySQL server: http://www.mysql.org PHP : http://www.php.net phpmyadmin : http://www.phpmyadmin.net 2-1 AppServ AppServ /appserv-win32-2.5.9.exe http://www.appservnetwork.com/ Zend Zend AppServ 2.5.9 & 2.4.9 with Zend Optimizer AddOns Released! AppServ AppServ 2.5.9 Apache 2.2.4 PHP 5.2.3 MySQL 5.0.45 phpmyadmin-2.10.2 10
02 AppServ Step 1 appserv-win32-2.5.9.exe Next 11
Step 2 I Agree Step 3 C:\AppServ Next 12
02 Step 4 Next Step 5 E-mail Port Number 80 Next 13
Step 6 MySQL 123 root Install 14
02 Step 7 Finish Step 8 http://localhost/ AppServ 15
2-2 Apache Apache Step 1 Apache http://localhost/ Apache Step 2 AppServ Control Server by Manual Apache Start Apache Step 2 Apache Apache 16
02 Step 3 Ctrl+Alt+Del Step 4 17
Step 5 Double Click Apache2.2 Apache Apache 18
02 2-3 Php.ini PHP Php.ini c:\windows\ PHP Web Apache (Data Handling) register_globals=on PHP PHP POST SESSION COOKIE php.ini register_globals register_globals=on register_globals on register_globals=off (File Uploads) file_uploads = On HTTP upload_max_filesize = 2M (Error Handling and Logging) display_errors=on web web display_errors=on web 19
2-4 httpd.conf AppServer Configuration Server Apache Edit the httpd.conf Configuration File Apache Server httpd.conf httpd.conf c:\appserv\appache2.2\conf DocumentRoot DocumentRoot C:/Appserv/www DocumentRoot httpd.conf DirectoryIndex DirectoryIndex index.html index.php DirectoryIndex index.html index.php index.htm index.php <IfModule mod_dir.c> DirectoryIndex index.html index.htm index.php <IfModule> HTTP://localhost/ http://localhost/ index.html index.html http://localhost/index.htm index.htm http://localhost/index.php localhost (URL) AppServer Configuration Server Apache Test the httpd.conf Configuration File Syntax OK 20