izlik
05-15-2007, 06:49 PM
Hello.
The code bellow in the file "default.asp" is the code i use to direct people depending on what subdomain they acsess my server with, it's ASP code.
and here for my problem, if you visit http://www.rizzler.se you get to my main page. it's a PHP files "index.php" in that file i have the "uptime" code shown bellow,when people visit http://www.rizzler.se it is not displayed as in http://www.rizzler.se/index.php and i wonder why it is not ?
REDIRECT
<% session.LCID=1053 %>
<% Response.CacheControl = "no-cache" %>
<% Response.AddHeader "Pragma", "no-cache" %>
<% Response.Expires = -1 %>
<%
SiteNameURL = Request.ServerVariables("SERVER_NAME")
If SiteNameURL = "www.rizzler.se" Then
%><!-- #Include File="index.php" --><%
else
If SiteNameURL = "folding.rizzler.se" Then
%><!-- #Include File="folding/myfolding.html" --><%
else
End If
end if
%>
UPTIME
<?php
$uptime = time() - filemtime("c:pagefile.sys");
$days = $uptime / 3600 / 24;
$hours = ($days - floor($days)) * 24;
$minutes = ($hours - floor($hours)) * 60;
$seconds = ($minutes - floor($minutes)) * 60;
echo " Server Uptime: ".(int)$days." dagar ".(int)$hours." timmar ".(int)$minutes." minuter ".(int)$seconds." sekunder ....." ;
?>
The code bellow in the file "default.asp" is the code i use to direct people depending on what subdomain they acsess my server with, it's ASP code.
and here for my problem, if you visit http://www.rizzler.se you get to my main page. it's a PHP files "index.php" in that file i have the "uptime" code shown bellow,when people visit http://www.rizzler.se it is not displayed as in http://www.rizzler.se/index.php and i wonder why it is not ?
REDIRECT
<% session.LCID=1053 %>
<% Response.CacheControl = "no-cache" %>
<% Response.AddHeader "Pragma", "no-cache" %>
<% Response.Expires = -1 %>
<%
SiteNameURL = Request.ServerVariables("SERVER_NAME")
If SiteNameURL = "www.rizzler.se" Then
%><!-- #Include File="index.php" --><%
else
If SiteNameURL = "folding.rizzler.se" Then
%><!-- #Include File="folding/myfolding.html" --><%
else
End If
end if
%>
UPTIME
<?php
$uptime = time() - filemtime("c:pagefile.sys");
$days = $uptime / 3600 / 24;
$hours = ($days - floor($days)) * 24;
$minutes = ($hours - floor($hours)) * 60;
$seconds = ($minutes - floor($minutes)) * 60;
echo " Server Uptime: ".(int)$days." dagar ".(int)$hours." timmar ".(int)$minutes." minuter ".(int)$seconds." sekunder ....." ;
?>