1

プロジェクトの実行時に public_html フォルダー内にあるインデックス ファイルをロードするように Netbeans に指示する方法を見つけようとしていますが、その方法がわかりません。

ソース: http://screencast.com/t/kWMCRKOWoo

ここに画像の説明を入力

実行構成: http://screencast.com/t/SqZTN7Pu

ここに画像の説明を入力

編集 :

誰かが以下の答えを拡張できますか? 私の2つのスクリーンショットを見て、追加のアイデア。

4

2 に答える 2

1

ローカルホスト経由で内部のファイルのみを実行できます

 http://localhost/WrestlingManager/index.php

そしてそれはにマッピングされます

 C:\xampp\htdocs\WrestlingManager\index.php

それが実行構成で設定したものです。

ブラウザで実行できれば簡単です (たとえば)。

 http://localhost/WrestlingManager/public_html/index.php

別の場所からファイルを実行したい場合。そのフォルダがあなたの中にある必要がありますserver conf file

Alias /public_html = "C:/Netbeans/Projects/PhpApp1/public_html"

私のApache httpd.confから

Alias /samples "D:/mysamples/xysamples"
<Directory "D:/mysamples/xysamples">
   Options Indexes FollowSymLinks MultiViews ExecCGI
   Order allow,deny
    Allow from all
</Directory>

今私はできる:http:/localhost/samples

public_htmlNetbeans プロジェクト内のフォルダーの実際のパスがわかりません。

実行構成では、設定できます

  • プロジェクト URL : http://localhost/WrestlingManager/public_html/
  • インデックスファイル: index.php
于 2013-07-21T02:04:40.050 に答える