si, infatti include non accetta le url assolute...
io ho aggirato il problema in un modo molto blando ma almeno funziona![]()
$my_page = $_SERVER['PHP_SELF'];
if (strpos($my_page , "/annunci/")) {
$target = 'categorie.php';
} else if (strpos($my_page , "/utenti/")) {
$target = '../annunci/categorie.php';
} else {
$target = 'annunci/categorie.php';
}
include $target;


Rispondi quotando