[PHP-DOC] cvs: phpdoc /kr preface.xml /kr/chapters security.xml

2001-02-13 Thread WonHee Hwang

regina  Tue Feb 13 19:12:50 2001 EDT

  Modified files:  
/phpdoc/kr  preface.xml 
/phpdoc/kr/chapters security.xml 
  Log:
  
  PR: v1.6 in English version
  Submitted by:
  Reviewed by:
  Obtained from:
  
  

Index: phpdoc/kr/preface.xml
diff -u phpdoc/kr/preface.xml:1.2 phpdoc/kr/preface.xml:1.3
--- phpdoc/kr/preface.xml:1.2   Sun Jan  7 19:07:25 2001
+++ phpdoc/kr/preface.xml   Tue Feb 13 19:12:49 2001
@@ -3,26 +3,36 @@


PHP는 HTML에 내장되어 동작하는 
스크립트 언어이다.(HTML-embedded scripting language) 
-PHP는 C와 Java, Perl등으로부터 많은 문장 형식을 빌려쓰고 있고, 
몇가지는 고유한 것도 있다. 
-이 언어의 목적은 웹개발자들이 동적인 웹문서를 빠르고 쉽게 
작성할 수 있도록 하는 것이다. 
+   PHP는 C와 Java, Perl등으로부터 많은 문장 형식을 
+빌려쓰고 있고, 몇가지는 고유한 것도 있다. 
+   이 언어의 목적은 웹개발자들이 동적인 
+웹문서를 빠르고 쉽게 작성할 수 있도록 하는 것이다. 



이 매뉴얼에 대하여

-이 매뉴얼은 DocBook XML DTD를 
사용한 XML로 되어있고,
-  문서의 포매팅을 위해서 
-   DSSSL
-
-  (Document Style and Semantics Specification Language) 을 사용한다. 
- HTML, TeX, RTF 문서로의 
포매팅은
- James Clark이 제작한 Jade와, 
- Norman Walsh가 제작한 The Modular DocBook Stylesheets를 사용하였다.
- PHP'의 문서 형태는 &link.stig; 이 관리한다.
-   
+   이 매뉴얼은 DocBook XML 
+DTD를 사용한 XML로 되어있고,
+   문서의 포매팅을 위해서 DSSSL 
+   (Document Style and Semantics Specification Language) 을 
+사용한다. 
+   HTML, TeX, 
+RTF 문서로의 포매팅은
+   James Clark이 제작한 
+Jade와, 
+   Norman Walsh가 제작한 
+   The Modular DocBook 
+Stylesheets를 사용하였다.
+   PHP의 문서 형태는 &link.stig; 이 관리한다.
+   

-   매일 작성되는 매뉴얼의 HTML 스냅샷(번역본 포함)은 &url.php.snaps.manual;에 있다.
-   
+   다양한 언어와 PDF, 일반 텍스트, 
+일반 HTML, 
+   WinHelp, RTF 등의 다양한 포맷의 
+매뉴얼을 
+   &url.php.docs;에서 
+찾을 수 있다.
+   
+   
+매일 작성되는 매뉴얼의 HTML 스냅샷(번역본 포함)은 
+&url.php.snaps.manual;에 있다.
+   
+   
+이 문서의 XML 소스코드를 다운받는데 필요한 
+자세한 정보는 
+&url.php.cvs;에 있다.
+문서는 phpdoc 모듈안에 저장되어 있다.
+   

 
 

[PHP-DOC] cvs: phpdoc /kr/chapters install.xml

2001-02-12 Thread WonHee Hwang

regina  Mon Feb 12 18:39:33 2001 EDT

  Modified files:  
/phpdoc/kr/chapters install.xml 
  Log:
  
  PR: v1.41 in English version
  Submitted by:
  Reviewed by:
  Obtained from:
  
  

Index: phpdoc/kr/chapters/install.xml
diff -u phpdoc/kr/chapters/install.xml:1.2 phpdoc/kr/chapters/install.xml:1.3
--- phpdoc/kr/chapters/install.xml:1.2  Tue Jan  9 21:13:17 2001
+++ phpdoc/kr/chapters/install.xml  Mon Feb 12 18:39:33 2001
@@ -2,29 +2,40 @@
설치(Installation)

최신 버전 내려받기
-   최신버전의 소스와 (윈도우즈를 포함한)여러 
플랫폼의 배포판은 
- 
-   &url.php;
-   에서 내려 받을 수 있다.
+   
+ 최신버전의 소스와 (윈도우즈를 포함한) 여러 
+플랫폼의 배포판은 
+ &url.php;에서 내려 
+받을 수 있다.
+ 가능하다면 여러분과 가장 가까이 있는 미러 사이트에서 내려 받기를 권한다.
  


Unix에 설치

-  이 장은 PHP를 설치하고 설정하는 방법에 대해 설명하고 있다. 
+  이 장은 PHP를 유닉스 시스템에서의 일반인 설치 방법과 설정 
+방법에 대해 설명하고 있다. 
+  시작전에 여러분이 사용하고 있는 시스템 내역과 웹서버의 
+스펙에 에 대해 자세히 알고 있어야 할 것이다.


   필요한 지식과 소프트웨어: 
 
 

+   
+  기본적인 UNIX 사용법 (컴파일 하고 설치할 경우 "make"와 C 
+컴파일러를 사용할 수 있어야 한다.)
+  
+   
+   
+   
+   ANSI C 컴파일러 (컴파일을 할 경우)
+  
+   
+   

-  기본적인 UNIX 사용법 ("make"와 C 컴파일러를 사용할 수 
있어야 한다.)
+   flex (컴파일을 할 경우)
   



-   ANSI C 컴파일러
+   bison (컴파일을 할 경우)
   


@@ -32,52 +43,65 @@
web 서버
   

+   
+   
+  여러분이 사용하고 싶은 모듈 컴포넌트 (gd, pdf 라이브러리 
+등) 
+  
+   


+   
+  Unix 환경에서 PHP를 설치하는 데는 여러가지 방법이 있는데,
+  크게 PHP를 처음부터 컴파일하고 설정하는 방법과 
+  미리 컴파일된 여러 패키지 중에 하나를 사용하는 방법이 있을 
+수 있다.
+  이 문서는 PHP를 처음부터 컴파일하고 설정하는 방법에 대해 
+주로 설명 하도록 하겠다.
+   

-   Unix 환경에서 PHP를 컴파일하고 설정하는 데는 여러가지 
방법이 있다. 
-  모든 설정은 configure 스크립트의 commandline 
옵션을 사용하여 설정한다.
-   이 글에서는 몇몇 핵심적인 옵션에 대해서만 대강 
설명하지만, 실제로 다른 많은 옵션이 있다.
-  PHP를 보다 안정적이고 효율적으로 동작를 시키려면 전체 설정 옵션을 살펴 보는 것이 좋다.
+  초기 PHP의 설치와 설정은 configure 
+  스크립트의 커맨드라인 옵션을 사용하여 설정한다.
+  이 글에서는 몇몇 핵심적인 옵션에 대해서만 대강 설명하지만, 
+실제로 다른 많은 옵션이 있다.
+  PHP를 보다 안정적이고 효율적으로 동작를 시키려면 
+  전체 설정 옵션을 살펴 보는 
+것이 좋다.
+  PHP는 다음과 같은 형태중 하나로 설치될 수 있다. :
 


-   As an Apache module
+   Apache module로




-   As an fhttpd module
+   fhttpd module로




-   For use with AOLServer, NSAPI,
-   phttpd, Pi3Web, Roxen, thttpd, or Zeus.
+   AOLServer, NSAPI,
+   phttpd, Pi3Web, Roxen, thttpd, Zeus와 함께




-   As a CGI executable
+   CGI 실행파일로





-   Apache Module
+   Apache 모듈 개략적인 설명

-PHP는 여러 다른 방법을 사용하여 Apache 모듈로 컴파일 될 수 
있다. 우선 간단한 방법을 선보인다. 
-Following this is a list of various examples with explanations, to provide an
- overview of how to accomplish certain things.
+PHP는 여러 다른 방법을 사용하여 컴파일될 수 있으나,
+가장 많이 사용되는 방법은 Apache 모듈로 컴파일 되는 것이다. 
+우선 간단한 방법을 선보인다. 
 

- You can select arguments to add to the
- configure on line 8 below from the Complete list of configure
- options.
+ 아래 8번째 라인의 configure 명령에는 
+ Complete list of configure 
+options에서 설명하는
+ 여러 다른 옵션을 줄 수 있다.
 


-  Quick Installation Instructions (Apache Module Version)
+  Quick Installation Instructions for PHP 4 (Apache Module Version)
  

 1.  gunzip apache_1.3.x.tar.gz
@@ -91,187 +115,324 @@
 9.  make
 10. make install
 11. cd ../apache_1.3.x
-12. for PHP 3: ./configure --activate-module=src/modules/php3/libphp3.a
-for PHP 4: ./configure --activate-module=src/modules/php4/libphp4.a
+12. ./configure --activate-module=src/modules/php4/libphp4.a
 13. make
 14

[PHP-DOC] cvs: phpdoc /kr/features file-upload.xml

2001-02-08 Thread WonHee Hwang

regina  Thu Feb  8 02:22:59 2001 EDT

  Modified files:  
/phpdoc/kr/features file-upload.xml 
  Log:
  
  PR: v1.18 in English version
  Submitted by:
  Reviewed by:
  Obtained from:
  
  
Index: phpdoc/kr/features/file-upload.xml
diff -u phpdoc/kr/features/file-upload.xml:1.4 phpdoc/kr/features/file-upload.xml:1.5
--- phpdoc/kr/features/file-upload.xml:1.4  Wed Jan 17 22:10:31 2001
+++ phpdoc/kr/features/file-upload.xml  Thu Feb  8 02:22:58 2001
@@ -70,7 +70,7 @@
PHP 4.0.2 이후에서는 항상 켜져 있으므로 걱정할 필요는 
없다.


-   $HTTP_POST_FILES의 내용은 다음과 같다.
+   $HTTP_POST_FILES의 내용은 다음과 
+같다.
위에 있는 예와 같이 업로드시 'userfile'이라는 필드명을 
사용한 것으로 가정한다.:
 

@@ -137,7 +137,7 @@
 }
 /* ...or... */
 move_uploaded_file($userfile, "/place/to/put/uploaded/file");
-?>
+?>
  

 이전 버전의 PHP에서는 다음과 같은 처리하여야 한다. 가 
필요하다.





[PHP-DOC] cvs: phpdoc /kr/features cookies.xml images.xml

2001-02-08 Thread WonHee Hwang

regina  Thu Feb  8 02:18:13 2001 EDT

  Modified files:  
/phpdoc/kr/features cookies.xml images.xml 
  Log:
  
  PR: do not change. just to sync with English version
  Submitted by:
  Reviewed by:
  Obtained from:
  
  
Index: phpdoc/kr/features/cookies.xml
diff -u phpdoc/kr/features/cookies.xml:1.2 phpdoc/kr/features/cookies.xml:1.3
--- phpdoc/kr/features/cookies.xml:1.2  Tue Jan  9 03:27:54 2001
+++ phpdoc/kr/features/cookies.xml  Thu Feb  8 02:18:13 2001
@@ -1,3 +1,4 @@
+
 
Cookies

Index: phpdoc/kr/features/images.xml
diff -u phpdoc/kr/features/images.xml:1.2 phpdoc/kr/features/images.xml:1.3
--- phpdoc/kr/features/images.xml:1.2   Tue Jan  9 03:27:54 2001
+++ phpdoc/kr/features/images.xml   Thu Feb  8 02:18:13 2001
@@ -1,3 +1,4 @@
+
 
PHP에서 이미지 생성과 수정(Creating and manipulating 
images)






[PHP-DOC] cvs: phpdoc /kr/features error-handling.xml

2001-02-08 Thread WonHee Hwang

regina  Thu Feb  8 02:11:23 2001 EDT

  Modified files:  
/phpdoc/kr/features error-handling.xml 
  Log:
  
  PR: v1.14 in English version
  Submitted by:
  Reviewed by:
  Obtained from:
  
  
Index: phpdoc/kr/features/error-handling.xml
diff -u phpdoc/kr/features/error-handling.xml:1.3 
phpdoc/kr/features/error-handling.xml:1.4
--- phpdoc/kr/features/error-handling.xml:1.3   Wed Jan 17 22:10:31 2001
+++ phpdoc/kr/features/error-handling.xml   Thu Feb  8 02:11:22 2001
@@ -125,7 +125,9 @@

모든 PHP 
표현식(expression)은 "@"를 앞에 붙이고 호출되면 
error reporting을 하지 않는다. 만약 track_errors 옵션이 Enabled로 
-   되어 있고 해당 문장에서 에러가 발생했다면, 
$php_errormsg라는 전역변수에 에러 메시지가 담겨 있게 된다.
+   되어 있고 해당 문장에서 에러가 발생했다면, 
+$php_errormsg 라는 전역변수에 에러 메시지가 담겨 
+있게 된다.
+ 그러나 @ error-control 
+operator라도 
+ 문법 에러의 경우에는 에러 메세지를 disable로 하지 못한다.
   







[PHP-DOC] cvs: phpdoc /kr/features http-auth.xml

2001-02-08 Thread WonHee Hwang

regina  Thu Feb  8 02:00:09 2001 EDT

  Modified files:  
/phpdoc/kr/features http-auth.xml 
  Log:
  
  PR: v1.8 in English version
  Submitted by:
  Reviewed by:
  Obtained from:
  
  
Index: phpdoc/kr/features/http-auth.xml
diff -u phpdoc/kr/features/http-auth.xml:1.2 phpdoc/kr/features/http-auth.xml:1.3
--- phpdoc/kr/features/http-auth.xml:1.2Tue Jan  9 03:27:54 2001
+++ phpdoc/kr/features/http-auth.xmlThu Feb  8 02:00:08 2001
@@ -57,7 +57,7 @@
인증이 필요한 URL의 암호를 훔쳐보는 것은 막을 수 없다는 
점이다. 


-   Netscape와 Internet Explorer 모두 401응답 코드를 서버에서 
받게되면 
+   Netscape Navigator와 Internet Explorer 모두 401응답 코드를 
+서버에서 받게되면 
local browser window의 authentication cache를 clear한다. 
즉, 이것은 "log out"개념이 되는 것으로, 사용자들로 하여금 
username과 암호를 다시 입력하게 한다. 
일부는 이것을 통해 login의 "time out"이나 "log-out"버튼을 
만드는데 사용한다 
@@ -91,8 +91,10 @@


그러나 이 동작은 HTTP Basic authentication 기준에 보장된 것은 
아니므로 이 기능에 의존하여서는 안된다. 
-   Lynx에서는 401 서버 응답을 받아도 authentication 정보를 
clear하지 않는다. 
-   따라서 Back을 누르고 다시 Forward 버튼을 눌러서 다시 
접근할 수 있다.
+   Lynx에서는 401 서버 응답을 받아도 authentication 정보를 
+초기화 하지 않는다. 
+   따라서 Back을 누르고 다시 Forward 버튼을 눌러서 기존의 
+인증 정보를 가지고 다시 접근할 수 있다.
+ 그리고 사용자가 '_'키를 눌러서 이 인증 정보를 삭제할 수도 
+있다.
+ 

또한 이 Authentication 기능은 Microsoft's IIS server에서 
CGI version의 PHP를 사용할 경우에는 IIS의 제약으로인해 
동작하지 않는다.





[PHP-DOC] cvs: phpdoc /kr/features persistent-connections.xml

2001-02-08 Thread WonHee Hwang

regina  Thu Feb  8 01:48:02 2001 EDT

  Modified files:  
/phpdoc/kr/features persistent-connections.xml 
  Log:
  
  PR: v1.7 in English version
  Submitted by:
  Reviewed by:
  Obtained from:
  
  
Index: phpdoc/kr/features/persistent-connections.xml
diff -u phpdoc/kr/features/persistent-connections.xml:1.4 
phpdoc/kr/features/persistent-connections.xml:1.5
--- phpdoc/kr/features/persistent-connections.xml:1.4   Wed Jan 10 22:00:36 2001
+++ phpdoc/kr/features/persistent-connections.xml   Thu Feb  8 01:48:02 2001
@@ -46,12 +46,11 @@
   

마지막 방법은 PHP를 멀티쓰레드(multithreaded) 웹서버의 
플러그-인의 
-   형태로 작동시키는 것인데, 현재 이방법은 이론적으로만 
존재하고, 
-   실제로 만들어 진 것은 없다. ISAPI, WSAPI, NSAPI (Windows에서) 
등의 
+   형태로 작동시키는 것이다. 현재 PHP4는 windows 환경에서 ISAPI 
+혹은 WSAPI, NSAPI의 방법을
방법을 사용하여 Netscape FastTrack, Microsoft's Internet Information 
Server (IIS), 
-   O'Reilly's WebSite Pro 등의 멀티쓰레드 웹서버에서 PHP를 
플러그-인으로 
-   동작시키려는 작업이 현재 진행중이다. 이 경우 기본 
동작은 위에서 언급한 
-   다중프로세스 모델과 동일하게 동작한다.
+   O'Reilly's WebSite Pro 등의 멀티쓰레드 웹서버에서 
+플러그-인으로 동작한다.
+ 이 경우 기본 동작은 위에서 언급한 다중프로세스 모델과 
+동일하게 동작한다.
+ 단, PHP3는 이와 같은 SAPI 형태를 지원하지 않는다.
   

영구적인 접속이 실제로 어떠한 기능적인 향상도 주지 
못한다면,





[PHP-DOC] cvs: phpdoc /kr/chapters config.xml /kr/language variables.xml

2001-02-08 Thread WonHee Hwang

regina  Thu Feb  8 01:26:03 2001 EDT

  Modified files:  
/phpdoc/kr/chapters config.xml 
/phpdoc/kr/language variables.xml 
  Log:
  
  PR: done!
  Submitted by: regina
  Reviewed by:
  Obtained from:
  
  

Index: phpdoc/kr/chapters/config.xml
diff -u phpdoc/kr/chapters/config.xml:1.1 phpdoc/kr/chapters/config.xml:1.2
--- phpdoc/kr/chapters/config.xml:1.1   Mon Jan  8 02:18:54 2001
+++ phpdoc/kr/chapters/config.xml   Thu Feb  8 01:26:02 2001
@@ -123,7 +123,7 @@
   호출된 파일은 include 함수를 통해서 
포함되므로 
   include_path 지시자가 
적용된다.

-none 값을 주게 되면 
auto-appending이 disable된다.
+   none 값을 주게 되면 auto-appending이 
+disable된다.


  만약 스크립트가 exit로 종료되게 되면 
auto-append는 일어나지 않는다. 
@@ -142,7 +142,7 @@
   호출된 파일은 include 함수를 통해서 
포함되므로 
   include_path 지시자가 
적용된다.

-none 값을 주게 되면 
auto-prepending이 disable된다.
+   none 값을 주게 되면 auto-prepending이 
+disable된다.



@@ -262,7 +262,7 @@
   따라서 이 제한을 피하기 위해 symbolic link를 사용하는 것을 
방지할 수 있다.


-..이라는 값을 주면 
스크립트 파일이 있는 디렉토리가 base-directory로 지정된다.
+   ..이라는 값을 주면 스크립트 파일이 있는 
+디렉토리가 base-directory로 지정된다.


 Windows에서는 세미콜론(;)으로, 다른 OS에서는 콜론(:)으로 
구분한다. 
@@ -310,7 +310,7 @@



-require와 include, 
fopen_with_path 
+   
+require와 include, 
+fopen_with_path 
   함수들이 사용하는 파일을 찾을 위치(path)를 지정한다. 
   string의 형식은 시스템 환경변수 PATH의 설정과 
비슷하다. 
   UNIX에서는 콜론으로 나뉘어진 디렉토리들의 리스트이고, 
Windows에서는 세미콜론을 사용한다. 
@@ -433,18 +433,19 @@



- Tells whether or not to register the EGPCS (Environment, GET,
- POST, Cookie, Server) variables as global variables. You may
- want to turn this off if you don't want to clutter your
- scripts' global scope with user data.  This makes the most
- sense when coupled with track_vars - 
in which case
- you can access all of the EGPCS variables through the
+ EGPCS (Environment, GET, POST, Cookie, Server) 변수들을 전역 변수로 
+설정할 것인가를 정한다.
+ 사용자의 데이타를 스크립트의 전역 변수 영역에 
+난잡하게 쌓아놓기를 원하지 않는다면 
+ 이 설정은 꺼놓는 것이 좋다.
+ 이 설정은 track_vars 설정를 
+ 고려해서 사용하면 매우 유용하게 사용할 수 있다.
+ track_vars설정을 켜 놓으면
+ 사용자의 EGPCS 변수들은 모두 
  $HTTP_ENV_VARS,
  $HTTP_GET_VARS,
  $HTTP_POST_VARS,
- $HTTP_COOKIE_VARS, and
- $HTTP_SERVER_VARS
- arrays in the global scope.
+ $HTTP_COOKIE_VARS, 
+ $HTTP_SERVER_VARS 
+ 배열을 통해 전역 영역(global scope)에서 접근가능하게 된다.
 


@@ -573,7 +574,7 @@



-   sendmail  프로그램을 찾을 Path. 
+   sendmail  
+프로그램을 찾을 Path. 
  보통은 /usr/sbin/sendmail이나 
/usr/lib/sendmail에 있다. 
  configure 프로그램이 sendmail의 위치를 찾아 
이것을 기본값으로 설정해 주지만, 
  그것이 잘되지 않았거나 오류가 있을 때, 여러분은 여기서 
직접 지

[PHP-DOC] cvs: phpdoc /kr/language types.xml

2001-02-05 Thread WonHee Hwang

regina  Mon Feb  5 23:14:16 2001 EDT

  Modified files:  
/phpdoc/kr/language types.xml 
  Log:
  
  PR: done!!
  Submitted by:
  Reviewed by:
  Obtained from:
  
  

Index: phpdoc/kr/language/types.xml
diff -u phpdoc/kr/language/types.xml:1.2 phpdoc/kr/language/types.xml:1.3
--- phpdoc/kr/language/types.xml:1.2Wed Jan 31 17:27:00 2001
+++ phpdoc/kr/language/types.xmlMon Feb  5 23:14:16 2001
@@ -1,4 +1,3 @@
-
 
변수 형태 (Types)

@@ -56,7 +55,7 @@
 $a = 0x12; # 16진수 (십진수 18과 같음)
  

-   정수의 크기는 실행환경에따라 다르다(platform-dependent).
+   정수의 크기는 실행환경에 따라 다르다(platform-dependent).
보통 최대값이 약 20억(32 bits signed)인 경우가 많다.


@@ -74,26 +73,22 @@



- It is quite usual that simple decimal fractions like
- 0.1 or 0.7 cannot be
- converted into their internal binary counterparts without a
- little loss of precision. This can lead to confusing results: for
- example, floor((0.1+0.7)*10) will usually
- return 7 instead of the expected
- 8 as the result of the internal representation
- really being something like 7.99
+ 여기서 0.1 이나 0.7같은 단순한 
+소수값이 
+ PHP 내부에 저장될 때 아주 약간의 그 값에 오차가 생길 수 
+있다는 것을 알아야 한다.
+ 문제는 그 작은 오차로 인해 다음의 예와 같은 명백히 
+잘못된 결과가 나올 수도 있다는 점이다. :
+ floor((0.1+0.7)*10)의 식은 일반적인 실행 
+환경에서는 8이 아닌 
+ 7을 반환한다. 함수의 괄호안에 있는 값이 
+7.99...가 되기 때문이다.
 

  이는 유한한 십진수로 분수를 정확하게 표현하기 불가는 
하다는 것과 일맥상통한다.
- 예를 들자면 분수
-1/3 을 십진수로 표현하자면
-0.333. . .이 된다.
+ 예를 들자면 분수 1/3 을 십진수로 표현하자면 
+0.333. . .이 된다.
 
 
- So never trust floating number results to the last digit and
- never compare floating point numbers for equality. If you really
- need higher precision, you should use the arbitrary 
precision math functions
- or gmp functions instead.
+ 따라서 실수 결과값에 대해서는 마지막 자리의 값을 믿지 
+말도록 하고, 
+ 실수끼리는 = 등의 '같다' 비교를 하지 않도록 하자. 
+ 만약 여러분이 좀더 높은 정밀도를 필요로 한다면 
+ arbitrary precision math functions 이나 
+ gmp에 있는 함수들을 사용하기 바란다.
 


@@ -490,19 +485,19 @@



-   형 다루기 (Type juggling)
+   뱐수형 다루기 (Type juggling)

 PHP에서는 변수형을 명확하게 선언할 필요도 없고, 변수형 
선언이
 제공되지도 않는다. 변수의 type은 구문내에서 사용되어질때 
결정된다.
-다시말해 변수var에 문자열을 
할당(assign)하면, 변수
+다시말해 변수var에 문자열을 대입하면, 변수
 var 의 형은 문자열이 되고, 변수
-var에 정수를 할당(assign)하면 정수형 변수가 
된다
+var에 정수값을 대입하면 정수형 변수가 된다
 
   PHP의 자동형변환에 대한 예는 '+'연산자에 
대한 역활을 보면 알수 있다.
-   '+'연산자가 사용된 연산식중 하나의 피연산자가 
double형이라면 다른 피연산자들도
+   '+'연산자가 사용된 연산 중에 하나의 피연산자가 
+double형이라면 다른 피연산자들도
double형으로 계산되어 결과는 double형이 된다. 마찬가지로 
하나의 피연산자가 
-   정수형이라면 그 결과도 정수형이 된다. 여기서 주의해야 
할것은 하나의 피연자에 의해
-   다른 피연산자의 형이 바뀌는 것이 아니라 단지 그 
결과값에만 영향을 미친다.
+   정수형이라면 그 결과도 정수형이 된다. 여기서 주의해야 할 
+것은 어떤 피연자에 의해
+   다른 피연산자의 형이 바뀌는 것이 아니라, 단지 그 결과값의 
+형을 결정하는 데에만 영향을 미친다는 것이다.
 

 $foo = "0";  // $foo 는 문자열 변수 (ASCII 48)
@@ -518,14 +513,15 @@
 문자열 변환(String
 conversion)을 참조하기 바란다.

-   변수가 특정한 형(type)으로 계산되어지게 
하고자할 경우
+   변수를 특정한 형(type)으로 취급되도록 
+하고자 할 경우
 Type
-casting을 참조하고, 변수의 형을 변환시카고자 할 경우는
+casting을 참조하고, 변수의 형을 변환시키려고 한다면
 settype을 참조하기 바란다.


-이 섹션에의 예제를 테스트 해보고자 한다면, 예제를 php 
file에 복사하고
-아래의 문장을 써준다면 어떻게 변수형이 변하는지 확인해 
볼수 있을것이다.
+만약 위의 예제를 실제 실험하고자 한다면, 
+위의 예제를 잘라 붙인 후에, 어떤 일이 일어났는 가를 알기 
+위해 
+아래의 문장을 삽입하여 살펴볼 수 있다.
 

 echo "\$foo==$foo; type is " . gettype ($foo) . "
\n"; @@ -534,7 +530,7 @@ - 배열에서의 자동 형변환은 통상적으로 정의되어져 있지 않다. + 배열로의 자동 형변환은 일반적으로 정의되어 있지 않다. $a = 1; // $a 는 정수형이다 @@ -552,20 +548,21 @@ - PHP에서 배열의 인덱스(index)와 같은 오프셋(offset)을 이용한 인덱스(index)를 - 문자열 변수에도 사용할 수 있다. 따라서 위의 예는 다음과 같은 문제를 안고 있다.: + PHP에서는 배열의 인덱스(index)와 동일한 형태를 사용하여, + 문자열 변수에 오프셋(offset)을 이용한 인덱스(index)를 사용할 +수 있다. + 따라서 위의 예는 다음과 같은 문제를 안고 있다.: $a가 첫번째 요소가 "f"인 배열인가? "f"가 문자열 변수 $a의 첫번째 문자가 되어야 하는가? - 이러한 이유로, PHP 3.0.12 and PHP 4.0b3-RC4에서 위와 같은 경우의 + 이러한 이유로, PHP 3.0.12 와 PHP 4.0b3-RC4에서 위와 같은 경우의 자동 형 변환은 정의되어 있지 않다고 한다. 이에 대한 정확한 정의는 논의 되어 질것이다. - 형 적용(Type Casting) + 변수형 적용(Type Casting) - PHP에서 형적용(type casting)은 C language에서와 매우 유사하다. + PHP에서 변수형 적용(type casting)은 C language에서와 매우 +유사하다. 원하는 타입을 적용(casting)되어지는 변수앞에 괄호로 묶어서 써 주기만 하면 된다. @@ -647,4 +644,4 @@ sgml-local-catalogs:nil sgm

[PHP-DOC] cvs: phpdoc /kr/chapters intro.xml

2001-01-21 Thread WonHee Hwang

regina  Mon Jan 22 00:08:50 2001 EDT

  Modified files:  
/phpdoc/kr/chapters intro.xml 
  Log:
  complete
  

Index: phpdoc/kr/chapters/intro.xml
diff -u phpdoc/kr/chapters/intro.xml:1.3 phpdoc/kr/chapters/intro.xml:1.4
--- phpdoc/kr/chapters/intro.xml:1.3Thu Jan 18 21:26:39 2001
+++ phpdoc/kr/chapters/intro.xmlMon Jan 22 00:08:50 2001
@@ -1,19 +1,18 @@
- 
-  ?뚭컻 (Introduction)
-
-  
-   PHP?€ 臾댁뾿?멸??
-   
-PHP(怨듭떇?곸쑝濡?"PHP: Hypertext Preprocessor ")??server-side
-HTML-embedded scripting language?낅땲??
+
+   소개 (Introduction)
+   
+   PHP란 무엇인가?
+   
+PHP(공식적으로 "PHP: Hypertext Preprocessor ")는 server-side
+HTML-embedded scripting language입니다.

-   
-媛꾨떒???듭씠吏€留? 臾댁뾿???섎??좉퉴? ?ㅼ쓬 ?덈? 蹂댁옄:
+   
+간단한 답이지만, 무엇을 의미할까? 다음 예를 보자:

-   
-
- ?뚭컻???덈Ц
- 
+   
+   
+   소개용 예문
+   
 
 
 Example
@@ -27,67 +26,65 @@
 
 
  
-
-   
-   
-   Perl?대굹 C?€ 媛숈? ?ㅻⅨ CGI ?ㅽ겕由쏀듃?€ ?щ━ 
HTML??異쒕젰?섎뒗??留롮? 紐낅졊?닿? ?꾩슂?녿떎. 
-   ?뱀떊?€ HTML?댁뿉 ?뱀떊???섍퀬???섎뒗 ???꾩쓽 ?곸슦 
?쒖쨪??臾몄옄??異쒕젰)???€???ㅽ겕由쏀듃瑜??곸뼱二쇰㈃ ?쒕떎.
-   PHP肄붾뱶???뱀젙???쒖옉怨쒓렇
-   ?ъ씠???ㅼ뼱媛€寃??섎뒗?? ???쒗겕??PHP紐⑤뱶濡??ㅼ뼱媛€嫄곕굹 
?섏삤??寃껋씠??
-   
-   
-   PHP媛€ ?ㅻⅨ Clien-side Javascrip?€ 援щ퀎?섎뒗 寃껋? ??肄붾뱶媛€ 
?쒕쾭?먯꽌 ?ㅽ뻾?쒕떎??寃껋씠??
-If you were to have a
-script similar to the above on your server, the client would receive
+   
+   
+   
+   Perl이나 C와 같은 다른 CGI 스크립트와 달리 PHP는 HTML을 
+출력하는데 많은 명령어가 필요없다. 
+   HTML내에 하고자 하는 일(위의 영우 한줄의 문자열 출력)에 
+대한 스크립트를 적어주면 된다.
+   PHP코드는 특정한 시작과 끝 
+태그
+   사이에 들어가게 되는데, 이 태그를 통해 HTML 모드에서 
+PHP모드로 들어가거나 나오는 것이다.
+   
+   
+   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.

-  
-
-  
-   PHP濡?臾댁뾿???덈뒗媛€?
-   
-媛€??湲곕낯?곸씤 ?덈꺼?먯꽌, PHP???ㅻⅨ 
CGI?꾨줈洹몃옩???덈뒗 紐⑤뱺 寃껋쓣 ?좎닔 ?덈떎.
-from data瑜?媛€?몄삤怨?  ?숈쟻???뱁럹?댁?瑜?留뚮뱾嫄곕굹, 
Cookie瑜?蹂대궡怨?諛쏆쓣 ?섎룄 ?덈떎.
-   
-   
-?꾨쭏 PHP??媛€??媛뺣젰?섍퀬 愿€?ъ씠 媛€??遺€遺꾩? 
?곗씠?€踰좎씠?ㅻ뱾꼻?€ 吏€?먯씠??
-PHP瑜??ъ슜?섎㈃ ?뱀떊?€ 
Database瑜??ъ슜???뱁럹?댁?瑜??€?띾룄濡?媛꾨떒??留뚮뱾 ???덈떎.
-?ㅼ쓬???쇰컲?곸씤 Database?ㅼ쓣 吏€?먰븳??
+   
+   
+   PHP로 무엇을 할 수 있는가?
+   
+가장 기본적인 레벨에서, PHP는 다른 CGI프로그램이 할 수 있는 
+모든 것을 할수 있다.
+from data를 가져오고,  동적인 웹페이지를 만들거나, Cookie를 
+보내고 받을 수도 있다.
+   
+   
+아마 PHP의 가장 강력하고 관심이 가는 부분은 
+데이타베이스들의 폭넓은 지원이다.
+PHP를 사용하면 당신은 Database를 사용한 웹페이지를 놀랍도록 
+간단히 만들 수 있다.
+다음의 일반적인 Database들을 지원한다:
 
- 
-  Adabas D
-  dBase
-  Empress
-  FilePro (read-only)
-  Hyperwave
-  IBM DB2
-  Informix
-  Ingres
-  InterBase
-  FrontBase
-  mSQL
-  Direct MS-SQL
-  MySQL
-  ODBC
-  Oracle (OCI7 and OCI8)
-  Ovrimos
-  PostgreSQL
-  Solid
-  Sybase
-  Velocis
-  Unix dbm
- 
-
-   
-   
-PHP??IMAP, SNMP, NNTP, POP3, HTTP?깆쓽 ?꾨줈肄뷀넧怨ㅻⅨ 
寃껊뱾???ъ슜?섎뒗
-?ㅻⅨ ?쒕퉬?ㅻ뱾???€?댁꽌???대? 吏€?먰븯怨??덈떎. 
?ъ뼱吏€??raw network ?뚯폆???ъ슜?섎㈃,
-洹몄쇅???ㅻⅨ ?꾨줈?좎퐳?ㅼ쓣 ?ъ슜???섎룄 ?덈떎.
+   
+   Adabas D
+   dBase
+   Empress
+   FilePro (read-only)
+   Hyperwave
+   IBM DB2
+   Informix
+   Ingres
+   InterBase
+   FrontBase
+   mSQL
+   Direct MS-SQL
+   MySQL
+   ODBC
+   Oracle (OCI7 and OCI8)
+   Ovrimos
+   PostgreSQL
+   Solid
+   Sybase
+   Velocis
+   Unix dbm
+   
+   
+   
+   
+PHP는 IMAP, SNMP, NNTP, POP3, HTTP등의 프로코톨과 또 다른 것들을 
+사용하는
+다른 서비스들에 대해서도 이미 지원하고 있다. 심어지는 raw 
+network 소켓을 사용하면,
+그외의 다른 프로토콜들을 사용할 수도 있다.

-
-  
-
-  
-   PHP궗
-   
-PHP??1994??媛€??&link.rasmus;媛€ 泥섏쓬 怨좎븞?섏???
-珥덇린 鍮꾧났媛쒕쾭?꾩? 洹몄쓽 ?덊럹

[PHP-DOC] cvs: phpdoc /kr/features error-handling.xml file-upload.xml

2001-01-17 Thread WonHee Hwang

regina  Wed Jan 17 22:10:31 2001 EDT

  Modified files:  
/phpdoc/kr/features error-handling.xml file-upload.xml 
  Log:
  
  
  

Index: phpdoc/kr/features/error-handling.xml
diff -u phpdoc/kr/features/error-handling.xml:1.2 
phpdoc/kr/features/error-handling.xml:1.3
--- phpdoc/kr/features/error-handling.xml:1.2   Tue Jan  9 03:27:54 2001
+++ phpdoc/kr/features/error-handling.xml   Wed Jan 17 22:10:31 2001
@@ -36,7 +36,7 @@
8
E_NOTICE  

-   Notices (무시할 수 있는 
알림이지만 버그의 가능성을 가지고 있는 경우) 
+   Notices (알림-무시할 수 있는 
+알림이지만 버그의 가능성을 가지고 있는 경우) 



@@ -95,61 +95,52 @@



-   The above values (either numerical or symbolic) are used to build
-   up a bitmask that specifies which errors to report. You can use the
-   bitwise operators
-   to combine these values or mask out certain types of errors. Note
-   that only '|', '~', '!', and '&' will be understood within
-   php.ini, however, and that no bitwise
-   operators will be understood within php3.ini.
+   위의 값(숫자, 상수 모두)은 레포트하기 원하는 내용의 
+비트를 설정하기 위해 조합하여 사용할 수 있다.
+   원하는 값을 조합해내기 위해 bitwise operators에
+   있는 비트 조작 연산자를 사용한다. 단 
+php.ini 파일에서는 '|', '~', '!', '&'의 
+   네개의 연산자만 사용가능하고, 
+php3.ini에서는 어떤 비트단위 연산자도 사용할 수 
+없다.
   

-   In PHP 4, the default error_reporting 
setting is
-   E_ALL & ~E_NOTICE, meaning to display all errors
-   and warnings which are not E_NOTICE-level. In PHP 3, the default
-   setting is (E_ERROR | E_WARNING | E_PARSE),
-   meaning the same thing. Note, however, that since constants are not
-   supported in PHP 3's php3.ini, the error_reporting setting there
-   must be numeric; hence, it is 7.
+   PHP4에서 error_reporting의 
+기본값은
+   E_ALL & ~E_NOTICE이다. 즉, 모든 에러와 
+경고를 출력하지만 알림(notice)는 레포팅하지 않는다.
+   PHP3에서의 기본값은 (E_ERROR | E_WARNING | 
+E_PARSE)이다.
+   내용적으로는 PHP4와 같다.
+   PHP3의 php3.ini에서는 상수를 사용한 설정을 
+사용할 수 없으므로,
+   error_reporting의 값은 반드시 
+숫자여야 한다.
+   그러므로 기본값은 7이다.
   

-   The initial setting can be changed in the ini file with the error_reporting directive, in
-   your Apache httpd.conf file with the
-   php_error_reporting (php3_error_reporting for PHP 3) directive, and
-   lastly it may be set at runtime within a script by using the
-   error_reporting function.
+   초기 설정은 ini 파일에 있는 error_reporting 지시자를 사용하여 변할 
+수 있고,
+   아파치의 httpd.conf파일에서 php_error_reporting 
+(PHP3에서는 php3_error_reporting) 지시자를
+   사용하여 설정할 수도 있다. 또한, 스크립트 실행중에 
+error_reporting 함수를 사용하여 설정할 수도 있다.
   


-When upgrading code or servers from PHP 3 to PHP 4 you should
-check these settings and calls to
-error_reporting or you might disable
-reporting the new error types, especially E_COMPILE_ERROR.  This
-may lead to empty documents without any feedback of what happened
-or where to look for the problem.
+   PHP3에서 PHP4로 프로그램 코드나 서버 자체를 이전할 경우, 
+   이 설정과 error_reporting 함수의 호출 내역을 
+반드시 확인하거나,
+   E_COMPILE_ERROR를 포함한 새로운 에러 타입에 대한 레포팅을 
+불가능하게 하여야 한다.
+   자칫하면 어떤 문제가 어디서 발생했는가에 대한 정보없이 
+빈 문서를 만들어 낼 수도 있으므로 주의하자.



-   모든 PHP 
표현식(expression)은 "@"를 앞에 붙이고 호출되면 error 
reporting을 하지 않는다. 
-   만약 track_errors 옵션이 
Enabled로 되어 있고 해당 문장에서 에러가 발생했다면, 
-   $php_errormsg라는 전역변수에 에러 메시지가 담겨 있게 된다.
+   모든 PHP 
+표현식(expression)은 "@"를 앞에 붙이고 호출되면 
+   error reporting을 하지 않는다. 만약 track_errors 옵션이 Enabled로 
+   되어 있고 해당 문장에서 에러가 발생했다면, 
+$php_errormsg라는 전역변수에 에러 메시지가 담겨 있게 된다.
   


-Currently the @
-error-control operator prefix will even disable error
-reporting for critical errors that will terminate script
-execution. Among other things, this means that if you use @ to suppress
-errors from a certain function and either it isn't available or
-has been mistyped, the script will die right there with no
-indication as to why.
+   현재 @
+error-control operator 선행자(prefix)는 스크립트를 중단시킬 
+정도의
+   치명적인 에러에 대해서도 에러 레포팅을 하지 않게 한다.
+   특히 @이 특정 
+함수의 에러레포팅을
+   억제 하려고 사용된 경우에, 이 함수가 존재 하지 않거나, 
+이름을 잘못 쓴 경우 해당 스크립트는
+   아무런 이유를 표시하지 않고 죽어버리게 된다.



-   Below we can see an example of using the error handling capabilities in
-   PHP. We define a error handling function which logs the information into
-   a file (using an XML format), and e-mails the developer in case a critical
-   error in the logic happens.
+   아래에 PHP에서 에러를 다루는 기능에 대한 사용 예를 적어 
+놓았다.
+   이 예에서 우리는 파일로(XML 포맷을 사용) 해당 정보의 
+로그를 남기고, 
+   논리적인 문제로 치명적인 에러가 생긴경우는 개발자에게 
+e-mail을 보내는 에러 핸들링 함수를 정의하였다.

[PHP-DOC] cvs: phpdoc /kr/features persistent-connections.xml

2001-01-10 Thread WonHee Hwang

regina  Wed Jan 10 22:00:36 2001 EDT

  Modified files:  
/phpdoc/kr/features persistent-connections.xml 
  Log:
  
  
  
Index: phpdoc/kr/features/persistent-connections.xml
diff -u phpdoc/kr/features/persistent-connections.xml:1.3 
phpdoc/kr/features/persistent-connections.xml:1.4
--- phpdoc/kr/features/persistent-connections.xml:1.3   Tue Jan  9 21:49:22 2001
+++ phpdoc/kr/features/persistent-connections.xml   Wed Jan 10 22:00:36 2001
@@ -1,28 +1,28 @@
- 
-  영구적인 데이터베이스 접속 (Persistent database 
connections)
-
-  
+
+   영구적인 데이터베이스 접속 (Persistent database 
+connections)
+   
영구적인 접속(Persistent connection)은 여러분의 스크립트가 
종료되어도 
SQL link를 닫지 않는 접속을 말한다. 영구적인 접속이 
요청되면, 
PHP는 기존의 (이전에 열어 두었던) 동일한(identical) 
영구적인 접속이 있는가를 검사한다. 
만약 있다면 기존의 것을 사용하고, 없다면 새로운 link를 
만든다. 
'동일한' 접속이란 같은 호스트에 같은 사용자명과 같은 
암호를 사용한 접속을 말한다.
   
-  
+   
가끔 웹서버의 작동과 작업의 할당에 대해 잘 알고 있지 
못한 사람들은 
영구적인 접속이 사실은 별 것 아니라고 오해하기도 한다. 
-   특히, 영구적인 접속이 동일한 SQL link에서 'user sessions'를 
여는데 별 나을 것도 없다던가,transaction을 효율적으로 
처리하는 것도 아니라다던가, 혹은 다른 어떤 
+   특히, 영구적인 접속이 동일한 SQL link에서 'user sessions'를 
+여는데 별 나을 것도 없다던가,
+   transaction을 효율적으로 처리하는 것도 아니라다던가, 혹은 
+다른 어떤 
특별한 것을 하는 것도 아니라고 한다. 사실, 이런 말들에 
대해 명백히 말하자면, 
영구적인 접속은 비영구적인 접속에 비해 어떠한 기능적인 
향상도 주지 못한다.
   
-  
+   
왜?
-   
-  
+  
+   
이것은 웹서버의 동작 방식에 따라 다른 효과를 낸다.
여러분의 웹서버가 웹 페이지를 만들기위해 PHP를 
이용하는데는 3가지 방법이 있다.
   
-  
+   
첫 번째 방법은 PHP를 CGI "wrapper"이 형태로 사용하는 것이다. 
이 방법의 경우, 웹서버에 매 PHP 페이지가 요구될 때 마다, 
PHP 인터프리터의 실행이 만들어지고 종료된다. 
@@ -31,7 +31,7 @@
이 경우 영구적입 접속을 사용하여 어떤 이득도 얻을 수 
없다. 
다르게 말하면 이 경우는 영구적인 접속을 해도 영구적이 
아니다.
   
-  
+   
두 번째 방법은 가장 대중적인 방법인데, 
PHP를 다중프로세스(multiprocess) 웹서버의 모듈로 사용하는 
것이다. 
(현재는 Apache가 유일하다.) 다중프로세스 서버는 보통 한 
개의 부모(parent) 프로세스와, 
@@ -44,7 +44,7 @@
자신이 처음 요구받았을 때 SQL 서버에 접속하게 된다. 
다른 페이지에서 SQL 서버에 접속 요구시는 이전에 
만들어진 접속을 다시 사용하게 된다.
   
-  
+   
마지막 방법은 PHP를 멀티쓰레드(multithreaded) 웹서버의 
플러그-인의 
형태로 작동시키는 것인데, 현재 이방법은 이론적으로만 
존재하고, 
실제로 만들어 진 것은 없다. ISAPI, WSAPI, NSAPI (Windows에서) 
등의 
@@ -53,11 +53,11 @@
동작시키려는 작업이 현재 진행중이다. 이 경우 기본 
동작은 위에서 언급한 
다중프로세스 모델과 동일하게 동작한다.
   
-  
+   
영구적인 접속이 실제로 어떠한 기능적인 향상도 주지 
못한다면,
이것을 사용해 어떤 이점이 있나요?
   
-  
+   
이것에 대한 간단한 답은 효율성이다. 
영구적인 접속은 SQL 서버와의 link를 만드는 것에 따른 
overhead가 클 경우에 유용하다. 
이  overhead는 많은 요인에 따라 커지기도 하고 작아지기도 
한다. 
@@ -72,27 +72,23 @@
실행하였던 20개의 다른 자식 프로세스가 있다면, 
아마도 각각의 자식 프로세스에대해 1개씩, 20개의 SQL 
접속이 있을 것이다.
   
-  
-   Note, however, that this can have some drawbacks if you are using a
-   database with connection limits that are exceeded by persistant
-   child connections. If your database has a limit of 16 simultaneous
-   connections, and in the course of a busy server session, 17 child
-   threads attempt to connect, one will not be able to. If there are
-   bugs in your scripts which do not allow the connections to shut
-   down (such as infinite loops), a database with only 32 connections
-   may be rapidly swamped. Check your database documentation for
-   information on handling abandoned or idle connections.
+   
+   이 방법은 영구적 접속의 개수가 데이타베이스 서버가 
+허용하는 의 접속수를 초과해서 설정되어
+   있는 경우 문제가 될 수 있다.
+   만약 데이타베이스가 16개의 동시 접속을 허용하고, 이 
+서버 세션들이 모두 사용중이면,
+   17번째 thread는 연결을 시도하다가 실패할 것이다. 만약 
+여러분이 만든 스크립트에
+   이런 경우에 대비한 특별한 대책이 없이 재시도를 
+반복하다보면 가능한 모든 connection을
+   사용하여 복구할 수 없게 된다. 이런 abandoned 혹은 idle 
+connection을 다루는 자세한 
+   설명은 데이타베이스 문서를 참조하기 바란다.
   
-  
+   
중요한 언급 한가지! 
영구적인 접속은 일반적인 접속에 일대일로 대응되도록 
설계되었다. 
이것은 스크립트의 다른 부분은 그대로 두고, 
언제라도 비영구적인 연결을 영구적인 연결로 대치할 수 
있다는 것을 의미한다. 
이것으로 여러분은 아마도 스크립트의 효율을 향상시킬 
수도 있을 것이다.
   
-
- 
-
+
 

[PHP-DOC] cvs: phpdoc /kr/functions cpdf.xml

2001-01-10 Thread WonHee Hwang

regina  Wed Jan 10 20:42:51 2001 EDT

  Modified files:  
/phpdoc/kr/functionscpdf.xml 
  Log:
  
  PR:
  Submitted by:
  Reviewed by:
  Obtained from:
  
  
Index: phpdoc/kr/functions/cpdf.xml
diff -u phpdoc/kr/functions/cpdf.xml:1.1 phpdoc/kr/functions/cpdf.xml:1.2
--- phpdoc/kr/functions/cpdf.xml:1.1Tue Jan  9 17:05:47 2001
+++ phpdoc/kr/functions/cpdf.xmlWed Jan 10 20:42:51 2001
@@ -1,56 +1,47 @@
- 
+ 
   ClibPDF functions
   ClibPDF
 
   

-ClibPDF lets you create PDF documents with PHP. It is available at
-FastIO but it isn't free
-software. You should definitely read the licence before you start
-playing with ClibPDF. If you cannot fullfil the licence agreement
-consider using pdflib by Thomas Merz, which is also very powerful.
-ClibPDF functionality and API is similar to Thomas Merz's pdflib but,
-according to FastIO, ClibPDF is faster and creates smaller documents.
-This may have changed with the new version 2.0 of pdflib.  A simple
-benchmark (the pdfclock.c example from pdflib 2.0 turned into a php
-script) actually shows no difference in speed at all. The file size
-is also similar if compression is turned off.  So, try them both
-and see which one does the job for you.
+   ClibPDF는 PHP에서 pdf 문서를 만들 수 있게 해 준다. 
+   ClibPDF는 FastIO에서 구할 수 있으나 
+공개(free software)는 아니다. 
+   여러분은 ClibPDF를 사용하기 전에 라이센스를 자세히 
+읽어봐야 할 것이다. 
+   만약 여러분이 이 라이센스에 동의하기를 원하지 않으면 
+Thomas Merz의 pdflib의 사용을 고려 할 수도 있다. 
+   pdflib도 역시 강력한 기능을 가지고 있다. ClibPDF는 Thomas 
+Merz의 pdflib와 기능이나 API가 매우 유사하지만, 
+   FastIO에 따르면 ClibPDF는 문서를 더 작은 크기로 더 빠르게 
+만들 수 있다고 한다. 
+   ClibPDF는 pdflib 새로운 2.0 버전을 변환한 것 같다. 
+   간단한 예제(pdflib 2.0의 pdfclock.c를 php 스크립트로 고친 
+것)에서는 실질적인 속도의 차이는 없었다. 
+   또한 압축기능을 꺼 놓으면 두 개의 파일 크기도 비슷하다.


-This documentation should be read alongside the ClibPDF manual since it
-explains the library in much greater detail. 
+   여기의 설명은 ClibPDF의 매뉴얼과 같이 읽는 것이 좋다. 
+   이 매뉴얼은 라이브러리에 대해 더 자세히 설명하고 있다. 
+   ClibPDF의 매뉴얼의 내용을 이해여야 PHP에서의 이 
+라이브러리를 사용할 수 있을 것이다.

 

-Many functions in the native ClibPDF and the PHP module, as
-well as in pdflib, have the same name.  All functions except for
-cpdf_open take the handle for the document as
-their first parameter.
+   대부분의 PHP 모듈의 함수이름은 ClibPDF 고유의 함수(pdflib도 
+마찬가지고) 이름과 동일하다. 
+   cpdf_open 을 제외한 모든 함수들은 첫 번째 
+인수로 작업할 문서의 핸들을 가지게 된다. 


-Currently this handle is not used internally since ClibPDF does
-not support the creation of several PDF documents at the same time.
-Actually, you should not even try it, the results are unpredictable. I
-can't oversee what the consequences in a multi threaded environment
-are.  According to the author of ClibPDF this will change in one of
-the next releases (current version when this was written is 1.10).
-If you need this functionality use the pdflib module.
+   현재 ClibPDF가 동시에 여러개의 PDF 문서를 만들지 못하기 
+때문에 이 핸들은 내부적으로 아무 의미가 없다. 
+   그러나 이를 시험하지는 말라. 어떤 결과가 나올지 알 수 
+없다. 
+   더구나 멀티 쓰레드 환경에서는 중대한 오류가 생길 수도 
+있다. 
+   ClibPDF의 제작자에 따르면 이 내용은 다음 버전에서 수정될 
+것이라고 한다.(현재 버전은 1.10이다.) 
+   여러문서를 동시에 만드는 기능이 필요하다면 pdflib module을 
+사용하도록 하라.


 
- The function cpdf_set_font has changed since PHP 3
- to support asian fonts. The encoding parameter is no longer an integer
- but a string.
+   PHP3 이후로 cpdf_set_font 함수는 2byte의 아시안 
+폰트를 지원하도록 바뀌었다. 
+   그리고, 이 함수의 엔코딩 파라메터는 이제 정수값이 
+아니고 문자열이다.
 


-One big advantage of ClibPDF over pdflib used to be the possibility
-to create
-the pdf document completely in memory without using temporary files.
-It also provides the ability to pass coordinates in a predefined
-unit length. This is a handy feature but can be simulated with
-pdf_translate.
+   pdflib에 비해서 ClibPDF의 가장 큰 장점은 pdf 문서를 임시 
+파일을 
+   사용하지 않고 메모리 상에서 만들 수 있다는 점이다. 
+   또한 ClibPDF는 미리 정의된 유닛 길이의 좌표를 넘겨줄 수 
+있다. 
+   이것은 매유 편리한 기능이지만 pdflib에서도 
+pdf_translate를 사용하면 비슷한 기능을 지원할 수 
+있다.


 Another nice feature of ClibPDF is the fact that any page can be modified
@@ -59,11 +50,10 @@
 page and presume modifying an other page.


-Most of the functions are fairly easy to use. The most difficult part
-is probably creating a very simple PDF document at all. The following
-example should help you to get started. It creates a document
-with one page. The page contains the text "Times-Roman" in an
-outlined 30pt font. The text is underlined.
+   대부분의 함수들은 사용하기 쉽다. 간단한 pdf 문서를 하나 
+만들어보면 
+   별로 어렵지 않다는 것을 알 수 있을 것이다. 다음 예를 
+보면 쉽게 시작할 수 있다. 
+   이 예제은 한 장짜리 test.pdf라는 파일을 만드는 것이다. 
+   이 페이지에는 외곽선 30pt의 "Times-Roman" 폰트의 text가 
+쓰여진다. 이 text는 밑줄이 그어진다. 


 Simple ClibPDF Example
@@ -88,9 +78,8 @@
 


-The pdflib distribution contains a mor

[PHP-DOC] cvs: phpdoc /kr/functions calendar.xml

2001-01-10 Thread WonHee Hwang

regina  Wed Jan 10 20:27:57 2001 EDT

  Modified files:  
/phpdoc/kr/functionscalendar.xml 
  Log:
  
  PR:
  Submitted by:
  Reviewed by:
  Obtained from:
  
  

Index: phpdoc/kr/functions/calendar.xml
diff -u phpdoc/kr/functions/calendar.xml:1.1 phpdoc/kr/functions/calendar.xml:1.2
--- phpdoc/kr/functions/calendar.xml:1.1Tue Jan  9 17:05:47 2001
+++ phpdoc/kr/functions/calendar.xmlWed Jan 10 20:27:57 2001
@@ -1,69 +1,66 @@
- 
-  Calendar functions
-  Calendar
-
-  
-   
-The calendar functions are only available if you have compiled
-the calendar extension, found in either the "dl" or "ext"
-subdirectories of your PHP source code.
-Please see the README file before using it.
+
+   Calendar functions
+   Calendar
+   
+   
+   이 함수는 PHP 소스코드의 "dl"이나 "ext" 디렉토리에 있는 
+   calender extension을 함께 사용하도록 컴파일하여야 
+사용가능하다. 
+   사용전에 꼭 README 파일을 읽어보라. 

-   
-The calendar extension presents a series of functions to simplify
-converting between different calendar formats.  The intermediary
-or standard it is based on is the Julian Day Count.  The Julian
-Day Count is a count of days starting way earlier than any date
-most people would need to track (somewhere around 4000bc).  To
-convert between calendar systems, you must first convert to Julian
-Day Count, then to the calendar system of your choice.  Julian Day
-Count is very different from the Julian Calendar!  For more
-information on calendar systems visit &url.calendar;.  Excerpts from this
-page are included in these instructions, and are in quotes.
+   
+   PHP에는 서로 다른 날짜(달력) 형태를 변환시켜 주는 
+함수들을 제공한다. 
+   Julian Day Count가 기본이 된다. 이것은 BC4000년의 어느 시점을 
+기준으로 잡아 
+   그곳에서부터 얼마의 날짜가 지났는 가를 기준으로 삼는 
+것이다. 
+   이 Julian Day Count는 일반적으로 사용하는 Julian 시스템과는 
+다르다는 것을 알아두자. 
+   Calendar 시스템에 대해 자세히 알고 싶다면 &url.calendar;을 방문하여 보라. 
+   이 설명서중에서는 위의 페이지에서 발췌된 내용을 ""로 
+둘러 싸고 있다.

-  
-
-  
-   
-JDToGregorian
-Converts Julian Day Count to Gregorian date
-   
-   
-Description
-
- 
-  string jdtogregorian
-  int julianday
- 
-
-
+   
+   
+   
+   JDToGregorian
+   Converts Julian Day Count to Gregorian 
+date
+   
+   
+   Description
+   
+   
+   string 
+jdtogregorian
+   
+   int julianday
+   
+   
+   
+   
  Converts Julian Day Count to a string containing the Gregorian
  date in the format of "month/day/year".
 
-   
-  
-
-  
-   
-GregorianToJD 
-
+   
+   
+   
+   
+   GregorianToJD
+   
  Converts a Gregorian date to Julian Day Count
 
-   
-   
-Description
-
- 
-  int gregoriantojd
-  int month
-  int day
-  int year
- 
-
-
+   
+   
+   Description
+   
+   
+   int gregoriantojd
+   
+   int month
+   
+   int day
+   
+   int year
+   
+   
+   
+   
  Valid Range for Gregorian Calendar 4714 B.C. to  A.D.
-
+   
  Although this software can handle dates all the way back to 4714
  B.C., such use may not be meaningful. The Gregorian calendar was
  not instituted until October 15, 1582 (or October 5, 1582 in the
@@ -72,8 +69,8 @@
  and Greece in 1923. Most European countries used the Julian
  calendar prior to the Gregorian.
  
-  Calendar functions
-  
+   Calendar functions
+   
 
   
- 
-
-   
-  
- 
-  
-   
-JDToJulian 
-
+   
+   
+   
+   
+   
+   
+   JDToJulian
+   
  Converts a Julian Day Count to a Julian Calendar Date
 
-   
-   
-Description
-
- 
-  string jdtojulian
-  int julianday
- 
-
-
+   
+   
+   Description
+  

[PHP-DOC] cvs: phpdoc /kr/language control-structures.xml

2001-01-10 Thread WonHee Hwang

regina  Wed Jan 10 19:35:30 2001 EDT

  Modified files:  
/phpdoc/kr/language control-structures.xml 
  Log:
  
  
  

Index: phpdoc/kr/language/control-structures.xml
diff -u phpdoc/kr/language/control-structures.xml:1.3 
phpdoc/kr/language/control-structures.xml:1.4
--- phpdoc/kr/language/control-structures.xml:1.3   Wed Jan 10 02:54:00 2001
+++ phpdoc/kr/language/control-structures.xml   Wed Jan 10 19:35:29 2001
@@ -196,7 +196,7 @@
while


-   while 루프는 PHP의 가장 간단한 제어구조이다. 
+   while 루프는 PHP의 가장 간단한 
+제어구조이다. 
이것은 C와 동일하게 작동한다. while의 기본 
형태는 다음과 같다. :
 

@@ -258,7 +258,7 @@
do..while


-   do..while 루프는 비교식이 앞이 아닌 맨 뒤에 
있다는 점을 제외하면 
+   do..while 루프는 비교식이 앞이 
+아닌 맨 뒤에 있다는 점을 제외하면 
while 루프와 비슷하다. 
 The main difference from regular while loops is
 that the first iteration of a do..while loop is
@@ -325,7 +325,7 @@
for


-   for 루프는 PHP에서 가장 복잡한 루프이다. 
+   for 루프는 PHP에서 가장 복잡한 
+루프이다. 
이것의 형태은 C와 매우 유사하다. for 루프의 
문법은 다음과 같다. :
 

@@ -348,7 +348,8 @@
각 평가식은 비워둘 수 있다. expr2가 
비어있으면 무한 루프를 뜻한다. 
(PHP는 C와 같이 비어있으면 TRUE로 인식한다.) 
이건 별로 좋은 방법이 아니지만, 종종 이렇게 사용하고 

-   break를 사용하여 종료하는 방법도 있다. 
+   break
+   를 사용하여 종료하는 방법도 있다. 


다음 예는 1에서 10까지 출력하는 예제들이다. : 
@@ -434,7 +435,7 @@



-   foreach 문이 처음 수행될 때, 내부 배열 
포인터(internal array pointer)는 
+   foreach 문이 처음 
+수행될 때, 내부 배열 포인터(internal array pointer)는 
자동적으로 배열의 첫번째 원소로 설정된다. 이말의 
의미는 여러분이 foreach문을 사용할 때 
reset을 미리 호출할 필요는 없다는 것이다.
 
@@ -520,12 +521,12 @@
break


-   break는 for나, 
while, switch에서 빠져 나가는 
명령이다.
+   break는 for나, 
+while, 
+   switch에서 빠져 나가는 명령이다.


-   break accepts an optional numeric argument
-which tells it how many nested enclosing structures are to be
-broken out of. 
+   break에는 숫자 옵션을 줄 수 
+있는데, 
+   이것은 한번에 빠져 나갈 제어 구조의 수를 
+의미한다.



@@ -562,14 +563,11 @@
continue


-   continue is used within looping structures 
to
-skip the rest of the current loop iteration and continue execution
-at the beginning of the next iteration.
+   continue 는 현재 루프의 처음으로 
+가도록 하는 명령이다.


-   continue accepts an optional numeric 
argument
-which tells it how many levels of enclosing loops it should skip
-to the end of.
+   continue도 숫자 옵션을 줄 수 
+있는데, 
+   이것도 break에서와 같이 한번에 
+처음으로 갈 제어 구조의 수를 의미한다.



@@ -603,18 +601,14 @@
switch


-The switch statement is similar to a series of
-IF statements on the same expression.  In many occasions, you may
-want to compare the same variable (or expression) with many
-different values, and execute a different piece of code depending
-on which value it equals to.  This is exactly what the
-switch statement is for.
+   switch문은 내용상 동일한 
+표현식의 IF문을 나열한 것과 비슷하다. 
+   많은 경우에 한 변수를 여러 다른 값과 비교하여, 
+   두개의 값이 같는냐에 따라 서로 다른 코드들이 
+수행되기를 원하는 때가 있다.
+   바로 이런 경우에 switch문이 사용된다.


-The following two examples are two different ways to write the
-same thing, one using a series of if
-statements, and the other using the switch
-statement:
+   다음은 동일한 결과를 가져오는 예를 각각 
+if문과 
+   switch문으로 표현한 것이다. :
 

 if ($i == 0) {
@@ -642,19 +636,11 @@



-It is important to understand how the switch
-statement is executed in order to avoid mistakes.  The
-switch statement executes line by line
-(actually, statement by statement).  In the beginning, no code is
-executed.  Only when a case statement is found
-with a value that matches the value of the
-switch expression does PHP begin to execute the
-statements.  PHP continues to execute the statements until the end
-of the switch block, or the first time it sees
-a break statement.  If you don't write a
-break statement at the end of a case's
-statement list, PHP will go on executing the statements of the
-following case.  For example:
+  

[PHP-DOC] cvs: phpdoc /kr/language functions.xml

2001-01-10 Thread WonHee Hwang

regina  Wed Jan 10 03:32:28 2001 EDT

  Modified files:  
/phpdoc/kr/language functions.xml 
  Log:
  
  
  

Index: phpdoc/kr/language/functions.xml
diff -u phpdoc/kr/language/functions.xml:1.2 phpdoc/kr/language/functions.xml:1.3
--- phpdoc/kr/language/functions.xml:1.2Tue Jan  9 16:41:17 2001
+++ phpdoc/kr/language/functions.xmlWed Jan 10 03:32:27 2001
@@ -1,11 +1,11 @@
- 
-  Functions
+ 
+  함수 (Functions)
 
   
-   User-defined functions
+   사용자 정의 함수 (User-defined functions)
  

-A function may be defined using syntax such as the following:
+   함수는 다음과 같이 정의한다. :
  
 
  
@@ -18,28 +18,23 @@

  

-Any valid PHP code may appear inside a function, even other
-functions and class
-definitions.
+   함수 안에는 다른 함수나 class의 선언 등을 포함한 모든 가능한 PHP 
+코드가 사용될 수 있다.


-In PHP 3, functions must be defined before they are referenced. No
-such requirement exists in PHP 4.
+   PHP3에서는 함수는 그 함수가 사용되기 이전에 선언되어 
+있어야 하였으나 
+   PHP4에서는 이런 제약이 없어졌다.


-PHP does not support function overloading, nor is it possible to
-undefine or redefine previously-declared functions.
+   PHP는 function overloading을 지원하지 않고, 
+   이미 정의된 함수를 재정의하거나 없애지 못한다.


-PHP 3 does not support variable numbers of arguments to functions,
-although default arguments are supported (see Default argument
-values for more information). PHP 4 supports both: see Variable-length argument
-lists and the function references for
-func_num_args,
-func_get_arg, and
-func_get_args for more information.
+   PHP3에서는 함수 파라메터의 기본값을 설정해주는 것
+   (Default argument values를 
+보라.)은 가능해도, 
+   파라메터의 개수를 가변으로 설정하는 것은 불가능했지만, 
+PHP4는 두가지 모두 가능하다. 
+   자세한 내용은 Variable-length argument lists와
+   func_num_args, func_get_arg, 
+   func_get_args 함수의 설명을 보기 바란다.

 
   
@@ -48,24 +43,18 @@
Function arguments
  

-Information may be passed to functions via the argument list,
-which is a comma-delimited list of variables and/or constants.
+   argument list를 통해 함수에 어떤 정보를 넘겨줄 수 있다. 
+   이 argument list는 쉼표(,)로 나뉘어진 변수나 상수의 list이다. 
 

- PHP supports passing arguments by value (the default), passing by
- reference, and default argument
- values. Variable-length argument lists are supported only
- in PHP 4 and later; see Variable-length argument
- lists and the function references for
- func_num_args,
- func_get_arg, and
- func_get_args for more information. A
- similar effect can be achieved in PHP 3 by passing an array of
- arguments to a function:
- 
+   PHP는 passing by value(기본적으로 이것을 사용)와 
+   passing by reference, 
+   default argument values의 
+3가지 방법을 제공한다. 
+   가변 길이(Variable-length) argument list는 PHP4이후에서만 
+제공된다. 
+   자세한 내용은 Variable-length argument lists와 
+ func_num_args, func_get_arg, 
+ func_get_args 함수의 설명을 보기 바란다. 
+   그러나 PHP3에서도 배열을 통한 전달을 사용한다면 비슷한 
+효과를 낼 수 있다.
 
  
 function takes_array($input) {
@@ -79,17 +68,12 @@
 Making arguments be passed by reference
  
 
- By default, function arguments are passed by value (so that if
- you change the value of the argument within the function, it does
- not get changed outside of the function). If you wish to allow a
- function to modify its arguments, you must pass them by
- reference.
+   기본값으로 함수의 인수(argument)들은 값으로 전달된다(passed 
+by value). 
+   함수내에서 변화시킨 값을 함수 밖에서도 적용시키려면 
+pass by reference로 인수를 넘겨야 한다.
 
 
- If you want an argument to a function to always be passed by
- reference, you can prepend an ampersand (&) to the argument
- name in the function definition:
- 
+   어떤 함수의 인수를 항상 pass by reference로 넘기려 한다면, 
+   함수를 선언할 때 ampersand(&)를 인수의 앞에 붙여주면 
+된다. :
  
   
 function add_some_extra(&$string) {
@@ -103,9 +87,8 @@
 
  
 
- If you wish to pass a variable by reference to a function which
- does not do this by default, you may prepend an ampersand to the
- argument name in the function call:
+   만약 기본값은 by value 로 하지만 필요에 따라 by reference로 
+호출하고 싶다면 
+   함수 호출 시에 인수의 앞에 &를 붙이면 된다. :
  
  
   
@@ -127,9 +110,7 @@
 Default argument values
  
 
- A function may define C++-style default values for scalar
- arguments as follows:
- 
+   스칼라 인수(argument)에 대해서는 다음과 같이 C++ 과 
+비슷하게 기본값을 정해줄 수 있다. : 
  
   
 function makecoffee ($type = "cappucino") {
@@ -142,7 +123,7 @@
 
  
 
- The output from the above snippet is:
+ 위의 코드의 실행 결과는 다음과 같다 :
  
  
 Making a cup of cappucino.
@@ -151,14 +132,12 @@
 
  
 
- The default value must be a constant expression, not (for
- example) a variable or class member.
+   default 값은 반드시 상수이어야 한다. 
+   (예를들어) 변수나 class의 멤버를 사용해서는 안된다.
 
 
- Note that when using default arguments, any defaults should be o

[PHP-DOC] cvs: phpdoc /kr/language oop.xml

2001-01-10 Thread WonHee Hwang

regina  Wed Jan 10 03:16:04 2001 EDT

  Modified files:  
/phpdoc/kr/language oop.xml 
  Log:
  
  
  
Index: phpdoc/kr/language/oop.xml
diff -u phpdoc/kr/language/oop.xml:1.2 phpdoc/kr/language/oop.xml:1.3
--- phpdoc/kr/language/oop.xml:1.2  Tue Jan  9 16:41:17 2001
+++ phpdoc/kr/language/oop.xml  Wed Jan 10 03:16:04 2001
@@ -1,11 +1,11 @@
- 
+ 
   Classes and Objects
 
   
class

-A class is a collection of variables and functions working with
-these variables.  A class is defined using the following syntax:
+   클래스는 일련의 변수와 이 변수들을 사용하는 함수들의 
+모음이다. 
+   클래스는 다음과 같은 방법으로 선언한다
  
 
  
@@ -36,18 +36,16 @@

  

-This defines a class named Cart that consists of an associative
-array of articles in the cart and two functions to add and remove
-items from this cart.
+   이 선언은 Cart라는 이름의 클래스로, 카트안에 들어있는 
+물품을 위한 
+   한 개의 배열 변수와 cart에 물건을 넣거나 빼는 두 개의 
+함수로 구성되어 있다.


In PHP 4, only constant initializers for var
variables are allowed. Use constructors for non-constant initializers.


-Classes are types, that is, they are blueprints for actual
-variables. You have to create a variable of the desired type with
-the new operator.
+   Classe는 Type으로, 실제 변수들의 청사진이라 할 수 있다. 
+   여러분은 new 연산자를 사용하여 원하는 type의 변수를 
+생성하여야 한다.

  

@@ -58,14 +56,17 @@

  

-This creates an object $cart of the class Cart. The function
-add_item() of that object is being called to add 1 item of article
-number 10 to the cart.   Classes can be extensions of
-other classes. The extended or derived class has all variables and
-functions of the base class and what you add in the extended
-definition.  This is done using the extends keyword. Multiple
-inheritance is not supported.
+   위에 있는 예는 Cart 클래스의 $cart라는 object를 만드는 
+것이다. 
+   이 object의 add_item() 함수를 호출하여 물품 번호 "10"번의 
+물품 1개를 카트에 넣는다.

+
+   클래스는 다른 클래스로 확장 될 수 있다. 
+   확장 혹은 파생된(extended or derived) 클래스는 base가 되는 
+   클래스의 모든 변수들과 함수들을 그대로 가지게 되고, 
+   여기에 추가로 확장된 선언을 할 수 있다. 
+   이를 위해 "extends"라는 키워드가 사용된다.
+   두개 이상의 부모 클래스를 가지는 다중상속(Multiple 
+inheritance)는 지원하지 않는다.
+   
  

 
@@ -80,11 +81,10 @@

  

-This defines a class Named_Cart that has all variables and
-functions of Cart plus an additional variable $owner and an
-additional function set_owner(). You create a named cart the usual
-way and can now set and get the carts owner. You can still use
-normal cart functions on named carts:
+   위의 예는 Cart 클래스의 변수와 함수에 $owner 변수와 
+set_owner() 함수를 
+   추가한 Named_Cart라는 클래스의 선언이다. 여러분은 
+이름붙은 카트(named cart)를 
+   사용하여 카트의 주인을 설정하고 찾아볼 수 있다. 
+   또한 기존의 카트(cart)에 있는 함수도 모두 사용할 수 있다.

  

@@ -97,14 +97,12 @@

   

-Within functions of a class the variable $this means this
-object. You have to use $this->something to access any variable or
-function named something within your current object.
+   클래스 내부에 있는 함수에서 $this 라는 변수는 자기 자신 
+object를 의미한다. 
+   $this->something의 형태로 현재 object의 변수나 함수를 
+사용하여야 한다.


-Constructors are functions in a class that are automatically
-called when you create a new instance of a class. A function
-becomes a constructor when it has the same name as the class.
+   생성자(Constructor)는 해당 클래스의 새 인스턴스(새로 만든 
+변수라고 생각해 두자)를 
+   만들 때 자동적으로 실행되는 함수를 의미한다. 클래스의 
+이름과 같은 이름의 함수가 생성자가 된다.

  

@@ -118,11 +116,10 @@

  

-This defines a class Auto_Cart that is a Cart plus a constructor
-which initializes the cart with one item of article number "10"
-each time a new Auto_Cart is being made with "new". Constructors
-can also take arguments and these arguments can be optional, which
-makes them much more useful.
+   위의 예는 Cart 클래스에 물품번호 10번의 물품을 한 개 
+자동으로 추가하는 
+   생성자를 추가한 Auto_Cart라는 클래스의 선언이다. Auto_Cart는 
+"new"로 생성된다. 
+   생성자는 또한 인수(argument)를 가질 수 있고, 이 인수들은 
+default값을 가진 옵션으로 선언 할 수 있다. 
+   이 기능은 실제로 매우 유용하다.

  

@@ -145,8 +142,8 @@
  

 
- For derived classes, the constructor of the parent class is not
- automatically called when the derived class's constructor is
+   파생된(derived) 클래스의 경우, 이 클래스의 생성자가 
+호출될 때 
+   부모 클래스의 생성자는 자동으로 호출되지 않는다.
  called.
  






[PHP-DOC] cvs: phpdoc /kr/language control-structures.xml expressions.xml

2001-01-10 Thread WonHee Hwang

regina  Wed Jan 10 02:54:00 2001 EDT

  Modified files:  
/phpdoc/kr/language control-structures.xml expressions.xml 
  Log:
  
  
  

Index: phpdoc/kr/language/control-structures.xml
diff -u phpdoc/kr/language/control-structures.xml:1.2 
phpdoc/kr/language/control-structures.xml:1.3
--- phpdoc/kr/language/control-structures.xml:1.2   Tue Jan  9 16:41:17 2001
+++ phpdoc/kr/language/control-structures.xml   Wed Jan 10 02:54:00 2001
@@ -1,49 +1,48 @@
- 
-  Control Structures
-
-  
-   Any PHP script is built out of a series of statements. A statement
-   can be an assignment, a function call, a loop, a conditional
-   statement of even a statement that does nothing (an empty
-   statement). Statements usually end with a semicolon. In addition,
-   statements can be grouped into a statement-group by encapsulating a
-   group of statements with curly braces. A statement-group is a
-   statement by itself as well. The various statement types are
-   described in this chapter.
+
+   제어 구조 (Control Structures)
+   
+   모든 PHP 스크립트는 일련의 구문으로 이루어 진다. 
+   하나의 구문은 대입문이 될 수도 있고, 함수 호출, 반복문, 
+조건문이 될 수도 있으며 
+   심지어는 아무 내용이 없는 빈 문장일 수도 있다. 
+   한 구문은 일반적으로 세미콜론(;)으로 끝난다. 
+   또한 여러개의 구문을 중괄호({,})를 사용하여 하나의 
+그룹으로 만들어 사용할 수도 있다. 
+   이 구문-그룹은 그 그룹의 모든 구문들이 하나의 구문인 
+것처럼 인식된다. 
+   여기서는 여러 가지 구문형태에 대해 알아본다.
   
-
-  
-   if
-   
+   
+   
+   if
+   
+   
 The if construct is one of the most important
 features of many languages, PHP included.  It allows for
-conditional execution of code fragments.  PHP features an
-if structure that is similar to that of C:
+conditional execution of code fragments.  
+   PHP의 if 문은 C와 비슷하다.:
 
- 
+   
 if (expr)
 statement
  
-
-   
-   
+   
+   
+   
 As described in the section about expressions, expr is evaluated
 to its truth value.  If expr evaluates
 to TRUE, PHP will execute statement, and if it
 evaluates to FALSE - it'll ignore it.

-   
+   
 The following example would display a is bigger
 than b if $a is bigger
 than $b:
 
- 
+   
 if ($a > $b)
 print "a is bigger than b";
  
-
-   
-   
+   
+   
+   
 Often you'd want to have more than one statement to be executed
 conditionally.  Of course, there's no need to wrap each statement
 with an if clause.  Instead, you can group
@@ -53,25 +52,26 @@
 $b, and would then assign the value of
 $a into $b:
 
- 
+   
 if ($a > $b) {
 print "a is bigger than b";
 $b = $a;
 }
  
-
-   
-   
+   
+   
+   
 If statements can be nested indefinitely within other
 if statements, which provides you with complete
 flexibility for conditional execution of the various parts of your
 program.

-  
- 
-  
-   else
-   
+   
+   
+   
+   else
+   
+   
 Often you'd want to execute a statement if a certain condition is
 met, and a different statement if the condition is not met.  This
 is what else is for.  else
@@ -83,29 +83,29 @@
 $b, and a is NOT bigger
 than b otherwise:
 
- 
+   
 if ($a > $b) {
 print "a is bigger than b";
 } else {
 print "a is NOT bigger than b";
 }
  
-
+   
 
 The else statement is only executed if the
 if expression evaluated to
 FALSE, and if there were any
 elseif expressions - only if they evaluated to
-FALSE as well (see elseif).
+FALSE as well (see elseif).
 

-  
- 
-  
-   elseif
-   
-elseif, as its name suggests, is a combination
+   
+   
+   
+   elseif
+   
+   
+   elseif, as its name suggests, is a 
+combination
 of if and else.  Like
 else, it extends an if
 statement to execute a different statement in case the original
@@ -118,7 +118,7 @@
 b, a equal to b
 or a is smaller than b:
 
- 
+   
 if ($a > $b) {
 print "a is bigger than b";
 } elseif ($a == $b) {
@@ -127,9 +127,9 @@
 print "a is smaller than b";
 }
  
-
-   
-   
+   
+   
+   
 There may be several elseifs within the same
 if statement.  The first
 elseif expression (if any) that evaluates to
@@ -140,7 +140,7 @@
 behavior) but the bottom line is that both would result in exactly
 the same behavior.

-   
+   
 The elseif statement is only executed if the
 preceding if expression and any preceding
 elseif expr

[PHP-DOC] cvs: phpdoc /kr/features file-upload.xml

2001-01-10 Thread WonHee Hwang

regina  Wed Jan 10 02:46:55 2001 EDT

  Modified files:  
/phpdoc/kr/features file-upload.xml 
  Log:
  
  
  

Index: phpdoc/kr/features/file-upload.xml
diff -u phpdoc/kr/features/file-upload.xml:1.2 phpdoc/kr/features/file-upload.xml:1.3
--- phpdoc/kr/features/file-upload.xml:1.2  Tue Jan  9 03:27:54 2001
+++ phpdoc/kr/features/file-upload.xml  Wed Jan 10 02:46:55 2001
@@ -3,22 +3,18 @@

POST method uploads

-PHP is capable of receiving file uploads from any RFC-1867
-compliant browser (which includes Netscape Navigator 3 or later,
-Microsoft Internet Explorer 3 with a patch from Microsoft, or
-later without a patch).  This feature lets people upload both text
-and binary files.  With PHP's authentication and file manipulation
-functions, you have full control over who is allowed to upload and
-what is to be done with the file once it has been uploaded.
+   PHP는 RFC-1867을 지원하는 브라우저로부터 파일을 업로드 
+받을 수 있는 기능이 있다. 
+   이 기능을 사용하면 Text뿐 아니라 Binary파일도 업로드가 
+가능하다. 
+   여러분은 PHP의 authetication과 파일을 다루는 함수를 
+사용하여, 
+   파일이 Upload된 후에 해야 할 일을 스크립트에 반드시 정해 
+두어야 한다.


-Note that PHP also supports PUT-method file uploads as used by
-Netscape Composer and W3C's Amaya clients.  See the PUT Method
-Support for more details.
+   PHP는 또한 Netscape Composer 와 W3C's Amaya clients를 사용할 경우 
+   PUT-method 의 파일 업로드도 지원한다. 자세한 내용은 
+   PUT Method Support를 
+읽어보기바란다.


-A file upload screen can be built by creating a special form which
-looks something like this:
+   파일 업로드 화면은 다음과 같은 좀 특별한 폼을 만들어 
+띄울 수 있다. : 
 
File Upload Form

@@ -29,9 +25,9 @@
 
  

-The _URL_ should point to a PHP file.  The MAX_FILE_SIZE hidden
-field must precede the file input field and its value is the
-maximum filesize accepted.  The value is in bytes.
+   여기서 _URL_은 PHP html파일이어야 합니다. 
+   hidden 필드인 MAX_FILE_SIZE는 File input 필드들보다 선행되어야 
+합니다. 
+   이 값은 PHP html이 받아들이는 최대 파일 크기를 Byte단위로 
+나타냅니다. 


 In PHP 3, the following variables will be defined within the
@@ -45,36 +41,31 @@
 


-   $userfile - The 
temporary filename in which
-   the uploaded file was stored on the server machine.
+   $userfile - 
+업로드된 파일 내용이 저장되어 있는 서버의 임시 파일명.
   



-   $userfile_name - 
The original name or path
-   of the file on the sender's system.
+   $userfile_name - 
+업로드한 시스템에서 사용하는 파일의 원래 이름.
   



-   $userfile_size - 
The size of the uploaded
-   file in bytes.
+   $userfile_size - 
+byte단위의 Upload된 파일의 크기.
   



-   $userfile_type - 
The mime type of the file
-   if the browser provided this information.  An example would be
-   "image/gif".
+   $userfile_type - 
+만약 browser가 업로드된 파일의 mime 형식을 안다면, 그 mime 형식. 
+  (예: "image/gif").
   


-Note that the "$userfile" part of the above variables is
-whatever the name of the INPUT field of TYPE=file is in the upload
-form.  In the above upload form example, we chose to call it
-"userfile"
+   위 변수의 "$userfile"부분은 upload form에서 TYPE=filed을 가진 
+INPUT 필드의 이름이 된다. 
+   위의 예제에서 우리는 그 이름은 "userfile"이라고 정했다.


+
 In PHP 4, the behaviour is slightly different, in that the new
 global array $HTTP_POST_FILES is provided to
 contain the uploaded file information. This is still only
@@ -133,15 +124,11 @@



-Files will by default be stored in the server's default temporary
-directory, unless another location has been given with the upload_tmp_dir directive in
-php.ini. The server's default directory can
-be changed by setting the environment variable
-TMPDIR in the environment in which PHP runs.
-Setting it using putenv from within a PHP
-script will not work. This environment variable can also be used
-to make sure that other operations are working on uploaded files,
-as well.
+   업로드된 File은 php.ini의 
+   upload_tmp_d

[PHP-DOC] cvs: phpdoc /kr/features connection-handling.xml persistent-connections.xml remote-files.xml

2001-01-09 Thread WonHee Hwang

regina  Tue Jan  9 21:49:22 2001 EDT

  Modified files:  
/phpdoc/kr/features connection-handling.xml 
persistent-connections.xml remote-files.xml 
  Log:
  
  
  

Index: phpdoc/kr/features/connection-handling.xml
diff -u phpdoc/kr/features/connection-handling.xml:1.2 
phpdoc/kr/features/connection-handling.xml:1.3
--- phpdoc/kr/features/connection-handling.xml:1.2  Tue Jan  9 16:39:21 2001
+++ phpdoc/kr/features/connection-handling.xml  Tue Jan  9 21:49:22 2001
@@ -1,13 +1,12 @@
- 
+ 
   Connection handling
 
   
-   The following applies to 3.0.7 and later.
+   이 기능은 PHP version 3.0.7 이후부터 적용된 것들이다.
   
 
   
-   Internally in PHP a connection status is maintained.  There are 3
-   possible states:
+   내부적으로 PHP는 연결의 상태를 다음 3가지중 하나로 
+설정한다. :

 0 - NORMAL
 1 - ABORTED
@@ -16,60 +15,55 @@
   
 
   
-   When a PHP script is running normally the NORMAL state, is active.
-   If the remote client disconnects the ABORTED state flag is
-   turned on.  A remote client disconnect is usually caused by the
-   user hitting his STOP button.  If the PHP-imposed time limit (see
-   set_time_limit) is hit, the TIMEOUT state flag
-   is turned on.
+   PHP 스크립트가 일반적으로 실행되고 있을 때는 NORMAL 
+상태가 active된다. 
+   만약 원격 클라이언트가 연결을 끊게되면 ABORTED 상태 flag가 
+켜지게 된다. 
+   보통 클라이언트가 연결을 끊는 것은 사용자가 STOP 버튼을 
+눌렀을 때 일어난다. 
+   만약 PHP가 설정한 시간 제한에 
+(set_time_limit을 보라) 걸리게 되면 
+   TIMEOUT 상태 flag가 켜지게 된다.
+  
 
   
-   You can decide whether or not you want a client disconnect to cause
-   your script to be aborted.  Sometimes it is handy to always have your
-   scripts run to completion even if there is no remote browser receiving
-   the output.  The default behaviour is however for your script to be
-   aborted when the remote client disconnects.  This behaviour can be
-   set via the ignore_user_abort php3.ini directive as well as through
-   the corresponding php3_ignore_user_abort Apache .conf directive or
-   with the ignore_user_abort function.  If you do
-   not tell PHP to ignore a user abort and the user aborts, your script
-   will terminate.  The one exception is if you have registered a shutdown
-   function using register_shutdown_function.  With a
-   shutdown function, when the remote user hits his STOP button, the
-   next time your script tries to output something PHP will detect that
-   the connection has been aborted and the shutdown function is called.
-   This shutdown function will also get called at the end of your script
-   terminating normally, so to do something different in case of a client
-   diconnect you can use the connection_aborted
-   function.  This function will return true if the connection was
-   aborted.
+   여러분은 클라이언트가 연결을 끊었을 때 스크립트가 
+수행을 중단할 것인가 아닌가를 결정하여야 한다. 
+   때때로 원격 브라우저가 어떤 결과도 받아들이지 않더라도 
+스크립트를 끝까지 실행하는 것이 편리할 때가 많다. 
+   기본 동작은 클라이언트가 연결을 끊으면 스크립트도 
+중단되는 것이다. 
+   이 동작은 ignore_user_abort라는 php3.ini 지시자(directive)나, 
+   php3_ignore_user_abort라는 Apache의 .conf의 지시자로 설정이 
+가능하고, 
+   ignore_user_abort 함수를 사용하여 설정할 수도 
+있다. 
+   만약 PHP에게 사용자가 내린 중지 명령을 무시하라고 
+말해주지 않았다면, 
+   사용자의 중지 신호는 여러분의 스크립트를 종료시킨다. 
+   단, register_shutdown_function을 사용하여 
+   shutdown 함수를 등록해 놓은 경우는 예외가 된다. 
+   shutdown 함수를 사용하면, 사용자가 STOP버튼을 눌렀을 때, 
+   여러분의 스크립트는 남은 출력을 하려고 하고, 
+   PHP는 연결이 중단되었음을 인지하여 shutdown 함수를 
+호출하게 된다. 
+   shutdown 함수는 여러분의 스크립트가 정상적으로 
+종료되었을 때도 호출 된다. 
+   만약 여기서 클라이언트의 연결 중단 때와 일반적인 
+종료시에 다른 동작을 원한다면 
+   connection_aborted 함수를 사용하면 된다. 
+   이 함수는 연결이 중단되었다면 true를 반환한다.
+  
 
   
-   Your script can also be terminated by the built-in script timer.
-   The default timeout is 30 seconds.  It can be changed using
-   the max_execution_time php3.ini directive or the corresponding
-   php3_max_execution_time Apache .conf directive as well as with
-   the set_time_limit function.  When the timer
-   expires the script will be aborted and as with the above client
-   disconnect case, if a shutdown function has been registered it will
-   be called.  Within this shutdown function you can check to see if
-   a timeout caused the shutdown function to be called by calling the
-   connection_timeout function.  This function will
-   return true if a timeout caused the shutdown function to be called.
-
+   스크립트는 내장된 타이머에 의해 종료될 수 있다. 
+   기본 timeout 시간은 30초로 되어 있다. 
+   이것은 max_execution_time이라는 php3.ini 지시자(directive)나,
+동일한 내용의 php3_max_execution_time이라는 Apache의 .conf 
+지시자에 의해 
+   다르게 설정이 가능하고 set_time_limit 함수를 
+사용하여 설정할 수도 있다. 
+   설정한 시간이 경과하면 스크립트는 자동으로 중단되고, 
+   이 스크립트는 위에 설명한 클라이언트와의 연결이 종료된 
+것처럼 동작한다. 
+   따라서 shutdown 함수가 등록되어 있다면 이 함수가 
+실행된다. 
+   shutdown 함수내에서 이 함수가 timeout에 의해 호출된 
+것인가를 판단하려면 
+   connection_timeout 함수를 사용하면 된다. 
+   이 함수는 timeout에 의해 shutdown 함수가 호출되었다면 true를 
+반환한다.
+  
   
-   One thing to note is that both the ABORTED and the TIMEOUT states
-  

[PHP-DOC] cvs: phpdoc /kr/chapters install.xml

2001-01-09 Thread WonHee Hwang

regina  Tue Jan  9 21:13:17 2001 EDT

  Modified files:  
/phpdoc/kr/chapters install.xml 
  Log:
  
  PR:
  Submitted by:
  Reviewed by:
  Obtained from:
  
  
Index: phpdoc/kr/chapters/install.xml
diff -u phpdoc/kr/chapters/install.xml:1.1 phpdoc/kr/chapters/install.xml:1.2
--- phpdoc/kr/chapters/install.xml:1.1  Mon Jan  8 00:54:19 2001
+++ phpdoc/kr/chapters/install.xml  Tue Jan  9 21:13:17 2001
@@ -1820,7 +1820,7 @@



-이 옵션은 PHP 4.0.3 이상에서에서는 
allow_url_fopen이라는 INI 파라메터로만 제공된다. 
+이 옵션은 PHP 4.0.3 이하에서는 
+allow_url_fopen이라는 INI 파라메터로만 제공된다. 



@@ -2434,31 +2434,31 @@



-phpfile이라고 정한 새 키를 Highlight시키고 
오른쪽 창에서 "default value" 를 더블 클릭한 후에 
+   
+phpfile이라고 정한 새 키를 Highlight시키고 오른쪽 
+창에서 "default value" 를 더블 클릭한 후에 
 PHP Script라고 적는다. 




-phpfile key에서 오른쪽 버튼을 클릭하여 
New->Key를 선택하고 
+   phpfile 
+key에서 오른쪽 버튼을 클릭하여 New->Key를 
+선택하고 
 Shell이라고 이름 붙인다




-Shell key에서 오른쪽 버튼을 클릭하여 
New->Key를 선택하고 
+   Shell 
+key에서 오른쪽 버튼을 클릭하여 New->Key를 
+선택하고 
 open이라고 이름 붙인다. 




-open key에서 오른쪽 버튼을 클릭하여 
New->Key를 선택하고 
+   open 
+key에서 오른쪽 버튼을 클릭하여 New->Key를 
+선택하고 
 command이라고 이름 붙인다. 




-command라고 정한 새 키를 Highlight시키고 
오른쪽 창에서 "default value" 를 더블 클릭한 후에 
+   
+command라고 정한 새 키를 Highlight시키고 오른쪽 
+창에서 "default value" 를 더블 클릭한 후에 
 php.exe의 path를 적는다. ( ex: 
c:\php\php.exe -q %1 ) (%1을 잊지 말도록) 
.