blob: c619b40538a2dda6d9a26baa0c3a0a3f320435c2 [file] [log] [blame]
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//
= NetBeans IDE PHPエディタを使用したデータベース駆動型アプリケーションの作成
:jbake-type: tutorial
:jbake-tags: tutorials
:jbake-status: published
:icons: font
:syntax: true
:source-highlighter: pygments
:toc: left
:toc-title:
:description: NetBeans IDE PHPエディタを使用したデータベース駆動型アプリケーションの作成 - Apache NetBeans
:keywords: Apache NetBeans, Tutorials, NetBeans IDE PHPエディタを使用したデータベース駆動型アプリケーションの作成
1. *=> PHPを使用するデータベース駆動型アプリケーションの作成 - メイン・ページ*
[start=2]
. データベースの作成
1. link:wish-list-lesson1.html[+MySQLデータベースの作成+]
2. link:wish-list-oracle-lesson1.html[+Oracleデータベース表の作成+]
3.
link:wish-list-lesson2.html[+アプリケーションの設計。データベースからの読取り+]
[start=4]
. link:wish-list-lesson3.html[+新規アプリケーション・ユーザーの作成+]
[start=5]
. link:wish-list-lesson4.html[+コードの最適化+]
[start=6]
. link:wish-list-lesson5.html[+セキュリティの追加。アプリケーション・ユーザー・ログオンの実装+]
[start=7]
. link:wish-list-lesson6.html[+データベースへの新しいウィッシュの追加+]
[start=8]
. link:wish-list-lesson7.html[+データベース内のエントリの更新および削除+]
[start=9]
. link:wish-list-lesson8.html[+CSSテクノロジを使用したアプリケーションの外観の改良+]
[start=10]
. link:wish-list-lesson9.html[+リモートWebサーバーへのアプリケーションのデプロイ+]
image::images/netbeans-stamp-80-74-73.png[title="このページの内容は、NetBeans IDE 7.2、7.3、7.4および8.0に適用されます"]
このチュートリアルでは、NetBeans IDEでのPHPのサポートを使用して、単純なWebアプリケーションを作成し、実行します。ウィッシュ・リストの作成方法を例で示します。アプリケーションを作成してデプロイすると、ウェディング、バースデー、ホリデー用のギフトなど、ウィッシュ・リストに関する情報を友人と共有できます。レッスン1で、情報を格納するデータベースを作成します。
レッスン2で、登録済のユーザーであれば、他のユーザーのウィッシュ・リストを表示できる機能を開発します。
レッスン3で、アプリケーションがサポートする新規ユーザーの登録機能を開発します。
レッスン4では、コードを保守しやすくするためのヒントが得られます。
レッスン5では、セキュリティ上の問題について、考えられる解決方法が提供されています。
レッスン67で、登録済の各ユーザーが独自のウィッシュ・リストを編集できる機能を開発します。
レッスン8で、CSSスタイル・シートを適用してアプリケーションの外観を改良するスタイルを追加します。最後に、レッスン9で説明されているヒントを使用して、アプリケーションをリモートWebサーバー上にデプロイします。
MySQLデータベースとOracleデータベースの両方のユーザー向けにコードが用意されています。チュートリアルでは ``mysqli`` およびOCI8 APIを使用します。PDOに興味があるユーザー向けに、PDOバージョンの完全なチュートリアルがlink:https://netbeans.org/projects/www/downloads/download/php/wishlist-pdo.zip[+ダウンロード+]できます。PDO_OCI APIは試験段階であることに注意してください。
*このチュートリアルに従うには、次のソフトウェアとリソースが必要です。*
|===
|ソフトウェアまたはリソース |必須バージョン
|link:https://netbeans.org/downloads/index.html[+NetBeans IDE+] |PHPダウンロード・バンドル
|PHPエンジン |バージョン5
|Webサーバー |link:http://httpd.apache.org/download.cgi[+Apache HTTP Server 2.2+] (推奨)
|データベース・サーバー |MySQLOracleXE、またはOracle11g
|===
必須ソフトウェアのインストールおよび構成の詳細は、使用しているオペレーティング・システムでlink:../../trails/php.html#configuration[+PHP開発用の環境の準備+]について説明しているドキュメントを参照してください。
== 次の手順:
link:wish-list-lesson1.html[+MySQLデータベースの作成+]
または
link:wish-list-oracle-lesson1.html[+Oracleデータベース表の作成+]
link:/about/contact_form.html?to=3&subject=Feedback:%20PHP%20Wish%20List%20CRUD%20Main[+このチュートリアルに関するご意見をお寄せください+]
link:../../../community/lists/top.html[+users@php.netbeans.orgメーリング・リストに登録する+]ことによって、NetBeans IDE PHP開発機能に関するご意見やご提案を送信したり、サポートを受けたり、最新の開発情報を入手したりできます。
link:../../trails/php.html[+PHPの学習に戻る+]