我安裝了apache2。 和我有3個directorioes用的index.php,都具有相同的index.php只是目錄DOC2有data.php如何在apache2中使用scriptAlias
-doc1 ---->的index.php
-doc2 ---->的index.php和data.php //此目錄中,我有index.php文件whitch內容要求 「dates.php」
的index.php
<? print "Hello"; require 'data.php'; //when it works show Hello there ?>
data.php
?> print "hello there" ?>
-doc3 ---->的index.php
我正在尋找從-doc3調用data.php的方式-doc1 index.php和-doc3 index.php 我聽說過有關ScriptAlias的一些信息,但我是用apache2搭檔的,有誰知道如何使用它?
所有3個「doc」目錄是否爲不同的網站記錄了根目錄?這意味着什麼:**「m尋找從-doc3到-doc1 index.php和-doc3 index.php調用data.php的方式」**? –