3 Ways To Selectively Execute HTML Files Using Apache HTTP Server 3つの方法を選択しApache HTTPサーバーを使用してHTMLファイルを実行する
A very simple way to execute HTML files is by telling the server to parse html files for SSI commands.非常に簡単な方法は、 htmlファイルを実行するサーバーを解析して、 htmlファイルをSSIのコマンドがあります。 To do it simply add the following lines to your .htaccess file:この操作を行うことに以下の行を追加するだけして。 htaccessファイル:
AddType text/html .html AddTypeのテキスト/ htmlに変更します。 HTMLの
AddHandler server-parsed .html addhandlerサーバー解析します。 HTMLの
This has the downside of processing all the html files in that directory and its subdirectories.この処理の影の部分には、すべてのhtmlファイルをそのディレクトリとそのサブディレクトリです。 A better way is to mark the files you want to execute with execute bit set and then add the line to your .htaccess file:を記念して、より良い方法はファイルを実行するにしたいと入力し、実行ビットがセットの行を追加します。 htaccessファイル:
XBitHack on xbithack上
XBitHack tells Apache to parse files for SSI directives if they have the execute bit set. xbithackは、 ApacheのSSIのディレクティブをパースするのファイルを実行する場合には、ビットを設定します。 So, to add SSI directives to an existing page, rather than having to change the file name, you would just need to make the file executable using chmod.そのため、 SSIのディレクティブを追加し、既存のページではなく、ファイル名の部分を変更する場合は、公正な必要性にchmodしてファイルを実行可能ファイルを使用しています。
chmod +x pagename.html にchmod + Xキーpagename.html
There is a third and even simpler way to execute programs and display the results using AJAX. 3番目には、プログラムを実行する方法も簡単にして表示するにajaxを使用して結果です。 You can use any popular任意の人気を使用することができます。 AJAX framework like Sajax AJAXフレームワークのようなsajax orまたは Prototypeプロトタイプ to make calls to the server and then display the results dynamically.をコールするに、サーバーと入力し、表示される検索結果を動的にします。 This had the added advantage of being able to repeatedly update page contents.これは、利点が追加されましたページの内容を更新できるように繰り返しています。
Note: Flash and Java applets are two other alternatives.注: Javaアプレットには2つのフラッシュおよびその他の選択肢です。 However they are less used these days.しかし彼らは、これらの日中にあまり使われています。
Filed under提出されて Headline Newsニュースの見出し , 、 How Toどのように , 、 Open Source Softwareオープンソースのソフトウェア , 、 PHP PHPの , 、 Tech Note技術のノート , 、 Technology技術 , 、 Webウェブ , 、 Web Hostingウェブホスティング , 、 Web Services Webサービス | |
| |
RSS 2.0 RSS 2.0を | |
Trackbackトラックバック this Article |この記事|
Email this Article電子メールこの記事
You may also like to readを読むようにすることも可能 |





March 6th, 2007 at 10:56 pm 2007年3月6日は10:56 pmの
helloこんにちは
plz send the way of running the HTML(steps)送信の邪魔をするのplzを実行しているのHTML (ステップ)
thanksありがとう
Antu Jainジャイナ教アンツー