View Single Post
  #1  
Old 10th October 2012, 14:55
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default Addittion to index.php
Hi i installed a flash forum to a subfolder of my pmbt.More accurate i installed a flash forum to root/myPinBoard/...
This flash forum has an index.php [ root/myPinBoard/index.php]:

index.php
PHP Code:
<?

// Require needed files...
require("inc/config.php");

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<title><?=$site_title?></title><style type="text/css">
<!--
html {

    height: 100%;

}

body,td,th {

    font-family: Verdana;
    font-size: 12px;
    color: #333366;

}

body {

    height: 100%;
    margin: 0px;
    background-color: #FFFFFF;
    cursor:default;

}
</style>

</head>
<script language="javascript" type="text/javascript" src="js/swfOBJ.js"></script>

<body>
<script language="JavaScript" type="text/javascript">

    var s = new Swf("Board.swf","100%","100%","8,0,0,0", "Board");
    s.write();

</script>

</body>
</html>
i want it to be shown though in pmbt's index.php so i tried:

Code:
OpenTable("Forum:");
include("myPinBoard/index.php");
CloseTable();
but it didn't work...

also tried
Code:
OpenTable("Forum:");
echo "<center>\n";
echo "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"910\" height=\"600\" id=\"sick\" align=\"middle\">\n";
echo "<param name=\"movie\" value=\"myPinBoard/Board.swf\" />\n";

echo "<embed src=\"myPinBoard/Board.swf\" quality=\"high\" scale=\"exactfit\" wmode=\"transparent\" width=\"910\" height=\"600\" name=\"sick\" align=\"middle\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n";
echo "</object>\n";
echo "</center>\n";
CloseTable();
it was displayed, sort of, but it uses it's own database so it did not show correctly...

when i type http://mysite/myPinBoard/index.php it shows just fine but i want it to show in http://mysite/index.php...How can this be done?
Reply With Quote