Okey, here is the deal, ive talked to my host and all (so im not blaming this on punbb) but is it possible that it can crash a windows IIS server just cause of the lines on my index.php file were i intigrate my ./forum/include/common.php file?
Currently my host is blaming me and my programing leetness for the problems that has arrisen:
1.
<?php
define('PUN_ROOT', './forum/');
require PUN_ROOT.'include/common.php';
define('PUN_TURN_OFF_MAINT', 1);
define('PUN_QUIET_VISIT', 1);
include 'include/login.inc.php'
?>
This text is at the top of my index.php ive included login and some stats. And the host says : the common.php aint there. Ive understood that he looked in my root folder for a include/ folder and there arent any there.
(just wanna check that the code is right with you)
2. I uploaded the file to my brand new include/ folder to (yeah that will generate problems) but anyways to shut up my host. So restart (without the php code though) and wee it works
3. Then i tested adding the "code" again and suddenly the server died... why o why is this happening it worked for like 2 months is this only the hosts fault or have ive done something???
Ask more if i were to dumb to miss anything...
yeah my folder structure looks like this:
ca
| root
\
forums <- Got the common.php in the include folder
include <- Also got an common.php + some extra scripts (news in main and login)
img
style
adding my index code to
<?php
define('PUN_ROOT', './forum/');
require PUN_ROOT.'include/common.php';
define('PUN_TURN_OFF_MAINT', 1);
define('PUN_QUIET_VISIT', 1);
include 'include/login.inc.php'
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="sv">
<head>
<title>B-landia :: Index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="./style/blandia.css" rel="stylesheet" type="text/css" />
<?php include('include/google.php'); ?>
</head>
<body onload="javascript:hasIE_hideAndShow();">
<?php include('include/ie.php'); ?>
<div class="page">
<!----Begin the LOGO/MENU area !---->
<div class="header">
<div id="logo">
<?php include('include/logo.php'); ?>
</div>
<div id="meny">
<?php include('include/meny.php'); ?>
</div>
</div>
<!----Begin the TEXT area !---->
<div class="site">
<div id="text">
</div>
</div>
<!----Begin the LOGIN/INFO area !---->
<div class="middle">
<div class="login">
<?php login_menu(); ?>
</div>
<div class="info">
<?php include('http://b-landia.net/forum/extern.php?action=stats'); ?>
</div>
</div>
<!----Begin the FOOTER area !---->
<div class="footer">
<?php
echo ("Det tog ");
$execute = microtime();
print (number_format($execute,4));
echo (" sekunder att läsa sidan.");
?>
</div>
</div>
<div class="add">
</div>
</body>
</html>