私は wamp を使用しており、2 つのディレクトリがあります。/www および /scripts。/www には index.html があり、/scripts には test.php があります。私は標準の PHP ディレクトリ規則にあまり詳しくありませんが、index.html ファイルに入れたいものは次のとおりです。
...html statements...
<run the following php script: /scripts/test.php>
...html statements
index.html ファイルに php スクリプト自体を含めるのではなく、
Apache の ScriptAlias ディレクティブ (http://httpd.apache.org/docs/2.0/mod/mod_alias.html#scriptalias) を調べましたが、この状況に適用する方法がよくわかりませんでした。続行する方法についてのアイデアはありますか?