Så har jeg lagt 2 små scripts på min hjemmeside
prøv
http://famnissen.dk/script1.php med include('downloads/script2.php');
script1
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<?PHP
echo '<h1>script1</h1>';
echo $_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']; if(!empty($_SERVER['QUERY_STRING'])) echo "?".$_SERVER['QUERY_STRING'];
echo '<pre>';print_r($_SERVER);echo '</pre>';
echo __FILE__;
echo '<hr>';
include('downloads/script2.php');
?>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
script2
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<?PHP
echo '<h1>script2</h1>';
echo $_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']; if(!empty($_SERVER['QUERY_STRING'])) echo "?".$_SERVER['QUERY_STRING'];
echo '<pre>';print_r($_SERVER);echo '</pre>';
echo __FILE__;
?>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Det sidste __FILE__ output i begge viser deres fysiske placering, men hvordan kommer jeg videre fra det.
Point's er øget, da spørgsmålet ikke nemt lader sig besvarer.