1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
|
<?xml version="1.0" encoding="utf-8"?>
<chapter id="introduction">
<title>소개 (Introduction)</title>
<sect1 id="intro-whatis">
<title>PHP란 무엇인가?</title>
<simpara>
PHP(공식적으로 "PHP: Hypertext Preprocessor ")는 server-side
HTML-embedded scripting language입니다.
</simpara>
<para>
간단한 답이지만, 무엇을 의미할까? 다음 예를 보자:
</para>
<para>
<example>
<title>소개용 예문</title>
<programlisting role="php">
<html>
<head>
<title>Example</title>
</head>
<body>
<?php
echo "Hi, I'm a PHP script!";
?>
</body>
</html>
</programlisting>
</example>
</para>
<para>
Perl이나 C와 같은 다른 CGI 스크립트와 달리 PHP는 HTML을 출력하는데 많은 명령어가 필요없다.
HTML내에 하고자 하는 일(위의 영우 한줄의 문자열 출력)에 대한 스크립트를 적어주면 된다.
PHP코드는 특정한 <link linkend="language.basic-syntax.phpmode">시작과 끝 태그</link>
사이에 들어가게 되는데, 이 태그를 통해 HTML 모드에서 PHP모드로 들어가거나 나오는 것이다.
</para>
<para>
PHP가 다른 Clien-side Javascrip와 구별되는 것은 이 코드가 서버에서 실행된다는 것이다.
If you were to have a script similar to the above on your server, the client would receive
the results of running that script, with no way of determining what
the underlying code may be. You can even configure your web server
to process all your HTML files with PHP, and then there's really no
way that users can tell what you have up your sleeve.
</para>
</sect1>
<sect1 id="intro-whatcando">
<title>PHP로 무엇을 할 수 있는가?</title>
<para>
가장 기본적인 레벨에서, PHP는 다른 CGI프로그램이 할 수 있는 모든 것을 할수 있다.
from data를 가져오고, 동적인 웹페이지를 만들거나, Cookie를 보내고 받을 수도 있다.
</para>
<para>
아마 PHP의 가장 강력하고 관심이 가는 부분은 데이타베이스들의 폭넓은 지원이다.
PHP를 사용하면 당신은 Database를 사용한 웹페이지를 놀랍도록 간단히 만들 수 있다.
다음의 일반적인 Database들을 지원한다:
<blockquote>
<simplelist columns="3">
<member>Adabas D</member>
<member>dBase</member>
<member>Empress</member>
<member>FilePro (read-only)</member>
<member>Hyperwave</member>
<member>IBM DB2</member>
<member>Informix</member>
<member>Ingres</member>
<member>InterBase</member>
<member>FrontBase</member>
<member>mSQL</member>
<member>Direct MS-SQL</member>
<member>MySQL</member>
<member>ODBC</member>
<member>Oracle (OCI7 and OCI8)</member>
<member>Ovrimos</member>
<member>PostgreSQL</member>
<member>Solid</member>
<member>Sybase</member>
<member>Velocis</member>
<member>Unix dbm</member>
</simplelist>
</blockquote>
</para>
<para>
PHP는 IMAP, SNMP, NNTP, POP3, HTTP등의 프로코톨과 또 다른 것들을 사용하는
다른 서비스들에 대해서도 이미 지원하고 있다. 심어지는 raw network 소켓을 사용하면,
그외의 다른 프로토콜들을 사용할 수도 있다.
</para>
<!--
<figure>
<title>Internal Structure</title>
<graphic fileref="../images/php3_internal_structure.gif"/>
</figure>
<figure>
<title>Request Scheme</title>
<graphic fileref="../images/php3_request_scheme.gif"/>
</figure>
-->
</sect1>
<sect1 id="intro-history">
<title>PHP의 역사</title>
<simpara>
PHP는 1994년 가을 &link.rasmus;가 처음 고안하였다.
초기 비공개버전은 그의 홈페이지에서 누가 그의 온라인 이력서를 보았는지 기록하는데 사용되었다.
외부에 사용된 것은 1995년 초부터이며 이때는 Personal Home Page Tools라고 불리게 되었다.
이것은 몇 개의 특별한 매크로를 사용할 수 있는 단순한 파서(명령 해석기) 엔진과
방명록이나 카운터 같이 여러 홈페이지에서 공통적으로 사용할 수 있는
몇 개의 간단한 유틸리티로 구성되었다
이 파서는 1995년 중반에 재작성되어 PHP/FI Version 2라고 명명되었다
FI는 Rasmus가 작성한 것으로 html 형식의 데이터를 해석할 수 있는 별도의 패키지다.
그는 Personal Home Page tools와 Form Interpreter의 두가지를 합치고,
mSQL을 지원하도록하여 PHP/FI를 탄생시켰다.
PHP/FI는 놀랍도록 빠른 속도로 발전하였고, 많은 사람들이 이에 공헌하였다
</simpara>
<simpara>
정확한 통계는 없지만 1996년 후반 PHP/FI는 전세계적으로 최소한
15,000개 이상의 웹사이트에서 사용되는 것으로 추정되었고,
1997년 중반에 그수는 50,000으로 늘어났다.
1997년 중반 PHP는 또다른 중요한 변화를 가져왔다.
이때부터 PHP는 Rasmus의 개인이 아닌 팀에 의해 개발되고 있다.
새 파서는 Zeev Suraski와 Andi Gutmans에의해 다시 작성되어
PHP Version 3라는 이름으로 등장했다.
많은 PHP/FI의 기능들이 옮겨져 왔고, 그외에도 많은 기능들이 새로 추가되었다.
</simpara>
<simpara>
현재(10/2000) PHP3 와 PHP4는 C2의 StrongHold web server나
RedHat Linux같은 여러 상업적인 제품과 함께 제공되고 있다.
<ulink url="&url.netcraft;">NetCraft</ulink>에서 제공되는 정보
(<ulink url="&url.netcraft-survey;">Netcraft Web Server Survey</ulink>)를 바탕으로
보면 PHP는 전세계적으로 최소한 3,300,000개 이상의 사이트에서 사용되고 있다.
이것은 인터넷에서 사용되고 있는 Netscape의 flagship Enterprise server
보다 많은수이고, IIS 서버의 수(380만)와 거의 비슷하다.
</simpara>
<!--
<figure>
<title>NetCraft Webserver Survey</title>
<graphic fileref="&url.php.stats;"/>
</figure>
-->
<simpara>
최근 버전의 PHP4에서는 <ulink url="&url.zend;">Zend</ulink>
같은 효율적인 스크립트 엔진을 사용하고 있고,
Apache이외의 웹서버에서도 모듈로 실행될 수 있도록 개발되고 있다.
</simpara>
</sect1>
</chapter>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->
|