Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は2つのphpファイルindex.php、inside.phpを持つ10のドメイン名を持っています。現在、サイトIDごとにクエリの変更のみが行われています。現在、ftpを介して2ページを10のサイトにアップロードしています。
これを行う簡単な方法はありますか?
すべてのドメインに同じドキュメント ルートを使用し、PHP スクリプトでチェック$_SERVER[HTTP_HOST]して、使用されているホスト名を特定します。
$_SERVER[HTTP_HOST]