how could i disply HTML files titles and urls? Say file title is welcome in DP, url "mysite.com/welcome-in-DP.html". how to disply title and url between body tags like: hay visitor welcome in DP you are in mysite.com/welcome-in-DP.html
Didn't quite understand you, but: for the url use $_SERVER['REQUEST_URI'] for the title... that's already on the page
i have .html file "welcome-in-DP.html" with a title "welcome in DP" i want to disply title and url in my .html file body. to be: you are in "title here". link this page "url here"
Just use PHP includes, should be ok if I understand well title.inc.php is title url.inc.php is url and myPage.php is You are in <?php include("title.inc.php"); ?><P> Link this page <?php include("url.inc.php"); ?> Make sense?
$page = 'mysite.com/welcome-in-DP.html'; $do_replace = array('-','_','.'); $temp_page = explode('.',basename($page)); $final_page = str_replace($do_replace,' ',$temp_page); echo "hay visitor welcome $final_page<br/>"; echo "you are in $page"; PHP: Peace,