Hello,
I have this imdb source that is working fine as in searching and fecthing information from imdb , anyway none of the files that the whole code is based on , i wasnt able to add on any of them the header and/oor footer of vb .
Am confused, whenever i try ti include the global.php and the header template they are parsed but my code is not, or vise versa !
here is a sample of one of the pages am trying to include a header and footer for ;
PHP Code:
<?
require_once("imdb_config.php");
require_once("imdb.class.php");
$conf = new imdb_config;
echo "<HTML><HEAD><TITLE>cache</TITLE></HEAD><BODY>";
$movie = new imdb ("0");
if ($d = opendir ($conf->cachedir)) {
while (false !== ($entry = readdir ($d))) {
if (strstr ($entry, "Title")) {
$imdbid = substr ($entry, 0, 7);
// echo $imdbid."<BR>";
$movie->setid ($imdbid);
echo "<a href=imdb.php?mid=";
echo $imdbid;
echo ">";
echo $movie->title ();
echo "</a>";
echo " <a href=\"http://us.imdb.com/title/tt";
echo $imdbid;
echo "\">imdb page</a>";
echo "<br>\n";
}
}
}
echo "</BODY></HTML>";
?>
any ideas ?
id like those file to have same theme as my forum !
Oh, i tried it using logician web templates hack , if i parse them using the template body as php , they show up alone , and if i parse them using his INCLUDE field ( he already stated the result there anyway) its parsed above the header .