text
stringlengths 1
254
| output
stringlengths 2
255
|
---|---|
This page outlines the usage of the most common options, but there are many others to play with.
|
PHPの初期設定および設定処理は、 configure スク リプトでコマンドラインのオプションを使用することにより制御されます。 このページは、最も一般的なオプションの使用法を概説するものですが、 この他にも多くの設定方法があります。詳細については、 configureオプションの完全なリスト を参照下さい。PHPをインストールする方法は複数あります。
|
There are several ways to install PHP:
|
Apacheモジュール として
|
As an fhttpd module
|
fhttpdモジュール とし て
|
As a CGI executable
|
AOLServer, NSAPI, phttpd, Pi3Web, Roxen, thttpd, Zeus として使用する
|
The following is a quick installation overview.
|
CGI実行ファイル として
|
Quick Installation Instructions for PHP 4 (Apache Module Version)
|
PHPは、Apacheモジュールとしてコンパイルする方法には異なった複数の 方法があります。まず始めに簡単なインストール手順を示します。
|
AddType application / x-httpd-php .php 18.
|
例 3-4 PHP 4 の簡単なインストール手順 (Apache モジュール版)
|
When PHP is configured, you are ready to build the CGI executable.
|
PHPを設定した後では、CGI実行バイナリまたはPHPライブラリを構築する 準備ができています。コマンド make を実行する場 合には注意を要します。このコマンドの実行が失敗し、その原因が不明 な場合には、 問題に関するセクショ ン を参照下さい。
|
Do not expect PHP to work on 16 bit platforms such as Windows 3.1.
|
本節は、Windows 95/98/Me及びWindows NT/2000/XPに適用します。PHPが Windows 3.1のような16ビットのプラットフォームで動作することは期待 できません。サポートされるWindowsプラットフォームをWin32と呼ぶこと があります。
|
There are two main ways to install PHP for Windows: either manually or by using the InstallShield installer.
|
PHPをWindowsにインストールするには、 マニュアルインストール とイ ンストーラ InstallShield による方法 の2種類があります。
|
Once you have PHP installed on your Windows system, you may also want to load various extensions for added functionality.
|
Microsoft Visual Studioを持っている場合、オリジナルのソースコード からPHPを 構築 するこ とも可能です。
|
Note:
|
WindowsシステムにPHPをインストールした後、機能を追加するために 様々な拡張モジュールの ロード を行う可能性があります。
|
The whole set of supported extensions is only available by downloading the zip binary distribution.
|
CGIバージョンのPHPをインストールする Windows 用 PHPインストーラが、 http://www.php.net/ から取得可能で、IIS、PWS、 Xitamiの場合、Webサーバーの設定も同時に行われます。InstallShield インストーラはPHPを動作させるための簡便な方法ですが、例えば、拡張 モジュールの自動設定ができないといった制約がいくつかあることに注 意して下さい。
|
Run the executable installer and follow the instructions provided by the installation wizard.
|
使用する HTTP サーバーをシステムにインストールし、 完全に動作するようにして下さい。
|
The installation wizard gathers enough information to set up the php.ini file and configure the web server to use PHP.
|
インストーラを実行し、インストールウイザードの指示に従って下さい。 2種類のインストール方法がサポートされています。一つ目は standard で、設定の選択肢についてデフォルト値が示されます。もう一つは advanced で、選択肢について質問が行われます。
|
Once the installation has completed the installer will inform you if you need to restart your system, restart the server, or just start using PHP.
|
インストールウイザードは、 php.ini ファイルを 設定し、Web サーバーでPHPを使用するように設定するに必要な情報を集 めます。IIS と NTワークステーションにおける PWS の場合、スクリプ トマップ設定を有するサーバーの全ノードのリストが表示され、PHPスク リプト用マッピングを追加したいと思う場所のノードを選択することが 可能です。
|
If you would like to have a secure PHP setup, you 'd better go on the manual way, and set every option carefully.
|
インストールが一旦完了すると、インストーラはシステムを再起動する か、または、単にPHPの使用を開始するかを聞いてきます。
|
This install guide will help you manually install and configure PHP on your Windows webserver.
|
このPHPの設定は安全ではないことに注意して下さい。安全にPHPを設定 したい場合、マニュアルでインストールし、オプションを注意深く設定 する方が良いでしょう。この自動設定はPHPのインストールを瞬時に行 うことを可能としますが、オンラインのサーバで使用するためのもので はありません。
|
The original version of this guide was compiled by Bob Silva, and can be found at http: / /www.umesd.k12.or.us / php / win32install.html.
|
このインストール手順は、Windows上のWebサーバにPHPを手動でインストー ル、設定する際の手助けとなるものです。 http://www.php.net/ にあるダウンロードページからzip バイナリアーカイブをダウンロードする必要があります。この手引の オリジナル版は、 Bob Silva によりコンパイルされており、 http://www.umesd.k12.or.us/php/win32install.html にあります。
|
Personal Web Server 3 and 4 or newer
|
この手引は、以下の環境へのマニュアルインストールをサポートします。
|
Apache 1.3.x
|
Personal Web Server 3または4以降
|
Oreilly Website Pro
|
Internet Information Server 3 または 4以降
|
The latter form is new to PHP 4, and provides significantly improved performance and some new functionality.
|
Omni HTTPd 2.0b1 以降
|
IIS 3.0 is NOT IIS 3.0 is NOT supported.
|
Netscape Enterprise Server, iPlanet
|
You probably do not want to use a path in which spaces are included (for example: c:\program files\php is not a good idea).
|
以下の手順は、個々のサーバーに関する手順の前に行う全てのインストー ルに共通する必須のものです。
|
You need to ensure that the DLLs which PHP uses can be found.
|
配布ファイルを好きなディレクトリに展開して下さい。 c:\php\ が、良い例です。
|
Make sure that these DLLs in the distribution exist in a directory that is in the Windows PATH.
|
特にMicrosoft Windows 9x/NT4を使用している場合には、 使用するプラットフォーム用のMicrosoft Data Access Components(MDAC)の最新版をダウンロードして下さい。 MDACは、 http://www.microsoft.com/data/ で入手可能で す。
|
The best bet to do it is to copy the files below into your system directory, which is typically:
|
'php.ini-dist' を Windows 9x/Meの場合は、 '%WINDOWS%' ディレクトリ、Windows NT/2000/XPの場合は、 '%SYSTEMROOT%'ディレクトリコピーし、 'php.ini' にリネームして下さい。 '%WINDOWS%' または '%SYSTEMROOT%'ディレク トリは、通常、次のようになります。
|
c:\winnt\system32 for Windows NT / 2000
|
zipファイルには、二つのiniファイル、 php.ini-dist および php.ini-optimized が含まれています。 php.ini-optimized を使用するこ とが推奨されます。これは、このファイルは性能及びセキュリティに 関してデフォルトの設定が最適化されているためです。 最善の方法は、 iniの設定 を全て学習し、ユーザが全ての要素をマニュアルで設定する ことです。デフォルトの設定でもPHPは動作しますが、最高のセキュ リティを得たい場合には、この方法を選択すると良いでしょう。
|
php4ts.dll, if it already exists there, overwrite it
|
'php.ini' ファイルを編集して下さい。
|
If you have them already installed on your system, overwrite them only if something doesn' t work correctly (Before overwriting them, it is a good idea to make a backup of them, or move them to another folder - just in case something goes wrong).
|
'extension_dir' の設定値を php-install-dir または 'php_*.dll' を置いた場所に変更する必要があります。 例えば、c:\php になります。
|
MDAC is available at http: / /www.microsoft.com / data /.
|
Omni Httpd を使用している場合、次の手順には従わないで下さい。 'doc_root' に Web サーバーのドキュメントルートを設定して下 さい。例: c:\apache\htdocs または c:\webroot
|
Your '%WINDOWS%' or '%SYSTEMROOT% 'directory is typically:
|
PHP 実行開始時にロードしたいモジュールを選択して下さい。こ れらのモジュールをロードするためには、'extension=php_*.dll' の行からコメントを外します。 スクリプトの中で dl() を使用することにより 動的にモジュールをロードすることもできます。 Windows 拡張モジュール に関する節を参照下さい。
|
We advise you to use php.ini-optimized, because we optimized the default settings in this file for performance, and security.
|
PWS と IIS においては、 browscap.ini を 次のように指定することができます。: Windows 9x/ME では 'c:\windows\system\inetsrv\browscap.ini'、 NT/2000サーバーでは、'c:\winnt\system32\inetsrv\browscap.ini' XPでは'c:\windows\system32\inetsrv\browscap.ini'
|
If you would like to achieve the best security, then this is the way for you, although PHP works fine with these default ini files.
|
Windows版アーカイブで配布されている mibs ディ レクトリには、SNMP用サポートファイルが含まれています。このディ レクトリを DRIVE:\usr\mibs (DRIVE はPHPをインストールしたドライブです。) に移動して下さい。
|
You will need to change the 'extension_dir' setting to point to your php-install-dir, or where you have placed your php_*.dll files.
|
PWSを使用する場合はwebrootに実行権限を与えてください:
|
Please do not forget the last backslash. ex: c:\php\extensions\
|
PWSウェブマネージャを起動します
|
Set the 'doc_root' to point to your webservers document_root.
|
"Home"ディレクトリのプロパティを編集します
|
Choose which extensions you would like to load when PHP starts.
|
"実行"チェックボックスをチェックします
|
Note that on a new installation it is advisable to first get PHP working and tested without any extensions before enabling them in php.ini.
|
説明する前に、次の質問に答えておきましょう。 "なぜ、Windows上の構築作業はこんなに面倒なのか?" 考えられる理由と しては、二つあります。
|
Note that the mibs Note that the mibs directory supplied with the Windows distribution contains support files for SNMP.
|
Windows では、まだソースを自由に共有することを好む開発者の大規 模なコミュニティが広まっていません。結果として、そのような開発 をサポートするために必要な基盤を構築する作業が行われていません。 利用可能な大部分のものは、UNIXから必要なユーティリティを移植し たものです。この経緯のいくつかが時々でてきますが、驚かないで下 さい。
|
If you' re using NTFS on Windows NT, 2000 or XP, make sure that the user running the webserver has read permissions to your php.ini (e.g. make it readable by Everyone).
|
ほとんど全ての手順は、"実行し、忘れる"形式で記述されています。 このため、端末の前に座り、以下の手順にできるだけそのまま従って試 して見て下さい。
|
Windows does not (yet) enjoy a large community of developers who are willing to freely share their source.
|
始める前に、ダウンロードしなければならないものが大量にあります...
|
By and large, what is available has been made possible by the porting of necessary utilities from Unix.
|
初めての場合、Cygwin toolkit を最も近い cygwin ミラーサイトから入手して下さい。これには、構築処理に使用される 標準的なGNUユーティリティの多くが含まれています。
|
Pretty much all of the instructions that follow are of the "set and forget" variety.
|
必要な残りの構築ツールをPHPサイト http://www.php.net/extra/win32build.zip からダウンロードします。
|
To compile and build PHP To compile and build PHP you need a Microsoft Development Environment.
|
PHPで使用されるDNS名レゾルバ用のソースコードを http://www.php.net/extra/bindlib_w32.zip で入手します。これは、 win32build.zip に入っている resolv.lib の代替品です。
|
Before you get started, you have to download...
|
unzipユーティリティをまだ持っていない場合、これが必要になりま す。フリー版を InfoZip で入手可能です。
|
..the source code for the DNS name resolver used by PHP from http: / /www.php.net / extra / bindlib_w32.zip.
|
最後に、PHP 4自体のソースが必要となります。最新の開発版を anonymous CVS により snapshot または ソース のtarアー カイブを入手可能です。この際、tarおよびgzipの解凍を行うだけでな く、Microsoft Visual C++がエラーを発生しないように *.dsp および *.dsw ファ イルの復改文字をCRLFに変換する必要があります。
|
You can get the latest development version using anonymous CVS, a snapshot or the most recent released source tarball.
|
注意 構築処理の際にプロジェクトが見付けられるように Zend および TSRM ディ レクトリを php4 ディレクトリの中に置いて下さ い。
|
Create a working directory where all files end up after extracting, e.g: c:\work.
|
選択したunzipユーティリティのインストール手順に従って下さい。
|
Create the directory bindlib_w32 under your working directory (c:\work) and unzip bindlib_w32.zip into it.
|
setup.exe を実行し、指示に従って下さい。 c:\cygnus 以外のパスにインストールした場合、 構築処理時にCygwin環境変数を設定して下さい。 Windows 95/98 の場合、環境変数の設定はautoexec.batに一行追加す ることにより可能です。Windows NTの場合、マイコンピュータ = コントロールパネル = システムに移動し、環境変数タブ を選択します。
|
A properly installed Cygwin environment provides the mandatory files bison.simple and bison.exe.
|
ディレクトリを作成し、そこで、unzip win32build.zip を行います。
|
Sequentially change the dropdown to Executables, Includes, and Library files.
|
c:\cygnus\bin
|
Executable files: c:\work\win32build\bin, Cygwin users: cygwin\bin
|
c:\php-win32build\include
|
Library files: c:\work\win32build\lib
|
c:\php-win32build\lib
|
Decide whether you want to have debug symbols available (bindlib - Win32 Debug) or not (bindlib - Win32 Release).
|
OKを押し、Visual C++を終了して下さい。
|
Then select Build= Set Active Configuration and select the desired configuration.
|
他のディレクトリを作成し、unzip bindlib_w32.zip をそこで行って下さい。デバッ グシンボルを利用可能とする(bindlib - Win32 Debug) かしない (bindlib - Win32 Release)かを決め手下さい。 次のように適当な設定で構築を行って下さい:
|
msdev bindlib.dsp / MAKE "bindlib - Win32 Debug"
|
GUIユーザの場合は、VC++を起動し、ファイル = オープンワー クスペースをオープンし、bindlibを選択して下さい。続いて、 構築= アクティブな構成を選択を選択し、好きな設定を選択し て下さい。最後に ビルド= 全てリビルドを選択して下さい。
|
Then select Build= Set Active Configuration and select the desired configuration, either php4ts - Win32 Debug_TS or php4ts - Win32 Release_TS.
|
コマンドライン版のユーザの場合、C++ 用の環境変数が定義されて いるかどうかを確認して下さい。もしくは、 vcvars.bat を実行し、続いて次のうちのどれ かを実行して下さい。
|
For command line users, make sure that you either have the C+ + environment variables registered, or have run vcvars.bat, and then execute one of the following commands from the c:\work\php-4.x.x\win32 directory:
|
msdev bindlib.dsp /MAKE "bindlib - Win32 Debug"
|
msdev php4ts.dsp / MAKE "php4ts - Win32 Release_TS"
|
msdev bindlib.dsp /MAKE "bindlib - Win32 Release"
|
It is possible to do minor customization to the build process by editing the main / config.win32.h.in file.
|
この時点で、サブディレクトリ Debug また は Release に利用可能な resolv.lib があるはずです。このファイル を win32build\lib ディレクトリの同名の ファイルに上書きコピーして下さい。
|
Next you may want to build the CLI version which is designed to use PHP from the command line.
|
最良の方法は、まずstandalone/CGI 版を構築することです。
|
After a succcessfull compiling run you will find the php.exe in either the directory Release_TS\cli\ or Debug_TS\cli\.
|
GUIユーザの場合、VC++を起動し、ファイル = ワークスペースを 開くを選択し、php4tsを選びます。続いて、構築= アクティブな 構成を設定を選び、好きな設定を選択します。最後に構築= 全て 構築を選択します。
|
For more information about PEAR and the installer read the documantation at the PEAR website.
|
コマンドライン版ユーザの場合、C++ 用の環境変数が定義されている かどうかを確認して下さい。もしくは、 vcvars.bat を実行し、続いて次のうちのどれか を実行して下さい。
|
In order to build the SAPI module (php4isapi.dll for integrating PHP with Microsoft IIS, set your active configuration to php4isapi-whatever-config and build the desired dll.
|
msdev php4ts.dsp /MAKE "php4ts - Win32 Debug_TS"
|
The following table describes some of the extensions available.
|
msdev php4ts.dsp /MAKE "php4ts - Win32 Release_TS"
|
You can also load a module dynamically in your script using dl().
|
ここまでの手順で、サブディレクトリ Debug_TS または Release_TS に利用可能な php.exe が作成されているはずです。
|
This prevents confusion between PHP extensions and their supporting libraries.
|
PHPをMicrosoft IISに組み込む際に必要なコードを構築するためには、 上記の手順を php4isapi.dsp (sapi\isapi にあります)で繰り返して下さい。
|
In PHP 4.0.6 BCMath, Calendar, COM, FTP, MySQL, ODBC, PCRE, Session, WDDX and XML support is built in.
|
PHPおよびWebサーバをWindowsにインストールした後、特定のモジュール を使用したくなる場合もあるでしょう。以下の表に現在のWindowモジュー ルを示します。マニュアルインストール手順で説明したように、PHPを起 動する際に 'extension=php_*.dll' の行のコメントを外すことにより、 ロードするモジュールを選択することが可能です。 スクリプトの中で dl() を使用することにより、モ ジュールを動的にロードすることも可能です。
|
See your distributions README.txt or install.txt for a list of built in modules.
|
PHP拡張モジュールのDLLには、PHP 4の場合、前に'php_'(PHP 3の場合は、' php3_')が付いています。これにより、PHP拡張モジュールを他のサポー ト用ライブラリと混同することが防止できます。
|
Copy the bundled DLLs from 'DLLs' folder to your Windows PATH, safe places are:
|
注意 PHP 4.0.6では、BCMath, Calendar, COM, FTP, MySQL, ODBC, PCRE, Session, WDDX, XML サポートが組み込まれています。これらの関数を 使用する際に、拡張モジュールをロードする必要はありません。組込済 モジュールのリストについては、配布ファイルの README.txt または install.txt を参照下さい。
|
Requires: libeay32.dll, ssleay32.dll (bundled)
|
表 3-1PHP 拡張モジュール
|
This list describes how to set up the PHP CGI binary to work with Xitami on Windows.
|
本節では、Xitamiに固有の注意事項とヒントについて説明します。
|
Read the faq on cgi.force_redirect for important details.
|
以下の手順は、Windows上のXitamiでPHP CGIバイナリを動作させる際の 設定方法です。
|
Make sure the webserver is running, and point your browser to xitamis admin console (usually http: / /127.0.0.1 / admin), and click on Configuration.
|
Webサーバが実行されていることを確認して下さい。そして、ブラウ ザで Xitami管理用コンソール(通常はhttp://127.0.0.1/admin)を見 て、Configurationをクリックして下さい。
|
In Filter command or script put the path and name of your php executable i.e. c:\php\php.exe.
|
Filtersを選択し、phpでパースさせる拡張子(すなわち、.php)を File extensions (.xxx) フィールドに入力して下さい。
|
Restart the server to reflect changes.
|
Filter command or script に、PHP実行ファイルのパスと名前(すな わち、c:\php\php.exe)を入力して下さい。
|
Home
|
'Save'アイコンを押して下さい。
|
Servers-Other web servers
|
変更点を反映するためにサーバを再起動して下さい。 Restart the server to reflect changes.
|
Hypertext Preprocessor") is a widely-used Open Source general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.
|
PHP ("PHP: Hypertext Preprocessor" の再帰的頭字語です)は広範囲にわたって使用可能されている 汎用スクリプト言語です。HTMLに埋め込むことができるので 特にWeb開発に適しています。
|
An example:
|
簡単な答えですが、どういう意味でしょう? 以下に例を示します。
|
html head title Example / title / head body ?php echo "Hi, I'm a PHP script !";? / body / html
|
例 1-1初歩的な例
|
The PHP code is enclosed in special start and end tags that allow you to jump into and out of "PHP mode".
|
PerlやCのような他の言語で書かれたスクリプトとの違いは、HTMLを出 力する多くのコマンドを用いてプログラムを書く代わりに何かを行う(こ の場合はテキストを出力する)埋め込みコードを含むHTMLスクリプトを書 くということです。PHP コードは、"PHPモード" に入ったり出たりする特 別な 開始および終了の タグ で括られています。
|
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.
|
PHP がクライアントサイド JavaScript のようなものと異なっている点は、 コードがサーバーで実行されるということです。上のようなスクリプトを サーバー上においていたとしたら、クライアントは、スクリプトを実行し た結果を受け取りますが、その出力を作成したコードに関する情報を得る ことはできません。全てのHTMLファイルをPHPで処理するようにWebサーバー を設定することさえ可能で、この場合、ユーザーが袖の内に何があるかを 見分けることは不可能になることでしょう。
|
The best things in using PHP are that it is extremely simple for a newcomer, but offers many advanced features for a professional programmer.
|
PHPを使用する上で最も優れている点は、初心者に対しては非常に分かり 易いと同時に、プロフェッショナルのプログラマに対しては多くの進んだ 機能を提供している点です。PHPの機能を羅列した長い一覧表を読まなけ ればならないのかと心配する必要はありません。PHPはすぐに始められま すし、数時間の内に簡単なスクリプトが書けるようになります。
|
Although PHP 's development is focused on server-side scripting, you can do much more with it.
|
PHPを使用した開発ではサーバサイドでの動作に焦点が当てられますが、 他にも多くのことが可能です。 PHPにできること まで読み進めてみてください。
|
But PHP can do much more.
|
あらゆることができます。PHPでは主にサーバサイドでの活用に焦点が 当てられているため、フォームからデータを取得したり、動的にページ の内容を生成したり、クッキーを送信・受信するといった他のCGI プログラムに出来ることは全て行うことが出来ます。しかし、これが 全てではありません。
|
You can access the PHP program output with a web browser, viewing the PHP page through the server.
|
PHPスクリプトが使用される場所は主に3つあります。
|
These scripts can also be used for simple text processing tasks.
|
サーバサイドでのスクリプティング。これは最も古くからあり PHPの中心となる場所です。ここでPHPを動作させるには 3つのものが必要です。PHPパーサ(CGIもしくはサーバモジュール)、 ウェブサーバ、そしてブラウザです。ウェブサーバは インストールされたPHPと連結して起動されなければなりません。 ブラウザでウェブサーバにアクセスし、PHPページを閲覧することで PHPプログラムの出力を得ることが出来ます。 インストール手順 の章に詳しい 情報があります。
|
You also have the ability to write cross-platform applications this way.
|
コマンドラインでのスクリプティング。PHPスクリプトは サーバもブラウザも無しで動作させるようにすることも出来ます。 この場合、PHPパーサだけが必要となります。このタイプは cron(Windowsではタスクスケジューラ)を使用して一定間隔で スクリプトを実行したい場合や、ちょっとした文書処理を 行うのに最適な方法です。 コマンドラインでPHPを使う の章に詳しい情報があります。
|
Although not every standard OOP feature is realized in the current version of PHP, many code libraries and large applications (including the PEAR library) are written only using OOP code.
|
つまりPHPを使用する場合にはOSとウェブサーバを自由に選ぶことが出来ます。 さらに手続き型のプログラミングかオブジェクト指向のプログラミングか、 もしくはそれらを混在させるかといった選択を行うこともできます。 現在のバージョンのPHPでは標準的なOOPの機能が全て実現されている 訳ではありませんが、(PEARライブラリを含め)多くのコードライブラリ や大きなアプリケーションがOOPのみを使用して書かれています。
|
You can also output easily any text, such as XHTML and any other XML file.
|
PHPはHTMLを出力するだけではありません。PHPはイメージやPDFファイル、 そして(libswfやMingを使って)Flashムービーまでもをその場で生成する 機能を備えています。またXHTMLやXMLといったその他の文書も自動的に 生成することが出来ますし、ファイルシステムに保存したり、印刷したり サーバ側でキャッシュすることも出来ます。
|
One of the strongest and most significant feature in PHP is its support for a wide range of databases.
|
PHP の機能の中で最も強力で優れた機能は、広範なデータベースをサポー トしていることでしょう。データベース機能を用いたWebページの作成は、 非常に簡単です。以下のデータベースが現在サポートされています。
|
Talking about interconnection, PHP has support for instantiation of Java objects and using them transparently as PHP objects.
|
PHPにはPOSIX拡張正規表現もしくはPerl正規表現からXML文書の解析に至るまで 非常に便利なテキスト処理の機能があります。XML文書の解析や操作のために SAXとDOMをサポートしています。XML文書の変換にはXSLT拡張モジュールを 使用することが出来ます。
|
For parsing and accessing XML documents, we support the SAX and DOM standards.
|
eコマースでPHPを使用するのなら、オンラインでの支払いを処理するのに、 Cybercash payment、CyberMUT、Verisign Payflow Pro、そしてCCVS関数が便利です。
|
At last but not least, we have many other interesting extensions, the mnoGoSearch search engine functions, the IRC Gateway functions, many compression utilities (gzip, bz2), calendar conversion, translation...
|
他にも多くの興味深い拡張モジュールがあります。mnoGoSearchサーチエンジン関数、 IRCゲートウェイ関数、多くの圧縮ユーティリティ(gzip, bz2)、カレンダー関数等です。
|
Read on in the sections about installing PHP, and see the function reference part for explanation of the extensions mentioned here.
|
お分かりの通り、このページではPHPの機能やPHPを使用することの利点を全て 紹介することは出来ません。 PHPのインストール の章を読んで見てください。紹介された拡張モジュールに関しては 関数リファレンス を読んでみてください。
|
It is not possible to substract from a class, that is, to undefine any existing functions or variables.
|
この例は、Cart の全ての変数及び関数に加えて変数 $owner と 関数 set_owner() を保持するクラス Named_Cart を定義しています。 この定義により、名前付きの籠を通常の手段で作成し、籠の保有者を 設定したり得たりすることができます。 名前付きの籠で元の籠クラスの関数を使うことも可能です。
|
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().
|
"親と子"と呼ばれる関係もあります。ある親クラスを作成し、 この親クラスに基づく新しいクラス、つまり、子クラスを extends により作成します。 この新しい子クラスを使用することやこの子クラスに基づき他の クラスを作成することが可能です。
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.