page refresh

Pagina: 1
Acties:
  • 34 views sinds 30-01-2008

  • nzyme
  • Registratie: November 2001
  • Laatst online: 26-04 08:04
Ik heb een probleem met de page refresh META tags. Dit bestand heet index.php en werkt verder ok, alleen de refresh werkt niet. Hij moet refreshen ivm de tijd.
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?PHP
$mtime_index = microtime();
$mtime_index = explode(" ",$mtime_index);
$mtime_index = $mtime_index[1] + $mtime_index[0];
$mtimestart_index = $mtime_index;
$filename = "./trafdata.txt";
if (!file_exists("./data.php")) {
touch("./data.php");}
$update = date ("l F d Y H:i", filemtime("./data.php"));
$time = date("l F d Y H:i");
if (!file_exists("./start.txt")) {
$file_start = fopen("start.txt", 'w+b');
fputs($file_start, $update);
fclose($file_start);}
$start = file_get_contents("start.txt");
include("./data.php");
$tdbg = "bgcolor='lightblue'";
?>
<html>
<head>
<META HTTP-EQUIV=\"REFRESH\" content=\"60\">
<META HTTP-EQUIV=\"EXPIRES\" content=\"-1\">
<META HTTP-EQUIV=\"PRAGMA\" content=\"no-cache\">
</head>
<title>Bandwidthd Network Traffic Counter</title>
<body bgcolor=white>
<table width=100% align=center>
<tr><td align=center>[img]./logo.gif[/img]</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td align=center><table cellspacing=0 width=100%></td></tr>
<tr><td align=left width=80>Startup time:</td><td width=400 align=left><b><? print"$start"; ?></b></td></tr>
<tr><td align=left width=80>Last update:</td><td width=400 align=left><b><? print"$update"; ?></b></td></tr>
<tr><td align=left width=80>Current time:</td><td width=400 align=left><b><? print"$time"; ?></b></td></tr>
<tr><td></table></td></tr>
<tr><td><b>- Traffic table</b></td></tr>
<tr><td align=left><hr width=80%></td></tr>
<tr><td align=center>
<table border=1 cellspacing=0 width=90% align=center>
</table>
<tr><td align=left><hr width=80%></td></tr>
</td></tr>
</td></tr>
</table>
<?
print "<div align=center><font size=2>$credit<br>";
$mtime_index = microtime();
$mtime_index = explode(" ",$mtime_index);
$mtime_index = $mtime_index[1] + $mtime_index[0];
$mtimeend_index = $mtime_index;
$totaltimetmp_index = ($mtimeend_index - $mtimestart_index);
$totaltimetmp = ($totaltimetmp_data + $totaltimetmp_index);
$totaltime = round($totaltimetmp,5);
print "<p>Parsetime: $totaltime sec.</font></div>";
?>
</body>
</html>

[ Voor 59% gewijzigd door nzyme op 22-02-2004 16:05 ]

| Hardcore - Terror |


  • curry684
  • Registratie: Juni 2000
  • Laatst online: 12-05 22:23

curry684

left part of the evil twins

Debuggen mag je zelf doen.

Professionele website nodig?


  • RobzQ
  • Registratie: Februari 2000
  • Laatst online: 21-12-2020

RobzQ

greedy as a pig

<META HTTP-EQUIV=\"REFRESH\" content=\"60\">
Volgens mij heb je hier geen \ nodig voor de quote.. (Het is standaard HTML)

..so be wary of any man who keeps a pig farm..


Dit topic is gesloten.