Codice PHP:<?php
$pagina = "http://www.sito.it/cartella/cartella2/index.html";
$pos = strrpos($pagina, "/");
$BASE_URL = substr($pagina, 0, $pos+1);
?>![]()
Codice PHP:<?php
$pagina = "http://www.sito.it/cartella/cartella2/index.html";
$pos = strrpos($pagina, "/");
$BASE_URL = substr($pagina, 0, $pos+1);
?>![]()