Kod
<?php
if (strpos($_SERVER['REQUEST_URI'], '/index.php') !== false){
$tab = file_get_contents('http://ratosluaf.pl/tabelka.php');
echo '<div class="body_container" style="width:70%;margin:auto;margin-bottom:15px;">';
echo $tab;
echo '</div>';
}
?>
if (strpos($_SERVER['REQUEST_URI'], '/index.php') !== false){
$tab = file_get_contents('http://ratosluaf.pl/tabelka.php');
echo '<div class="body_container" style="width:70%;margin:auto;margin-bottom:15px;">';
echo $tab;
echo '</div>';
}
?>
Jeżeli adres strony to xxxxxx.pl/index.php, to wyświetla mi ten kod.
Ale jeżeli jest to xxxxxx.pl, to już nie wyświetla.
Jak to rozwiązać?