-
PHP help, i think
might be ajax/java or php not too sure.
is there a script that finds the page 'title' and displays.
so like say i click 'home' and the page loads in my frame.
theres a box above it that currently says 'Main Content' and changes to 'Home Page' or whatever the <title></title> (or other means of defining a page title) of the page is.
http://i59.photobucket.com/albums/g2...ish/main-1.png
the main content is an ajax frame and the div is called contentarea
-
do you mean like this?
Habbox UK Forum > Technology + The Web > Designing & Development > Website Coding
Reload this Page PHP help, i think
or just the name of the file?
-
I mean like a specific name like the title of the page
-
ask simon, he uses that script on habbolake.com =]
-
PHP Code:
<?php
$data = file_get_contents("ur page");
function get_string_between($string, $start, $end){
$string = " ".$string;
$ini = strpos($string,$start);
if ($ini == 0) return "";
$ini += strlen($start);
$len = strpos($string,$end,$ini) - $ini;
return substr($string,$ini,$len);
}
$lol = get_string_between($data, "<title>", "</title>");
echo $lol;
?>
If ever you need to get string between two pieces of data and don't know PHP, use that
-
it don't matter now i don't think he is using that layout anymore