0

昨日、PHP で、ファイル自体の引数としてファイルの名前を使用する可能性について疑問に思っていました...つまり、「test1.php」というファイルを「file.php」と呼び、前のファイルの名前を引数として渡します。このようなことは可能ですか?

<Files *.php>
    //I call the "anotherpath/file.php" file passing as argument the filename of the file called before
    //i.e. Call anotherpath/file.php?arg=filename of the "virtual" file
</Files>

「test1.php」(サーバーにもありません)は「anotherpath/file.php」を呼び出し、これは「test1」文字列にアクセスできます。前もって感謝します!

4

3 に答える 3