Mijn laadtijd is erg lang, en ik weet niet precies waar dit nou aan licht,
Ik hoop dat jullie mij hier verder mee kunnen helpen.
verdere uitlaag/vraag onderaan.
Mijn index.php
Mijn menu.php
En mijn loc.inc.php
Kon er niet meer bij omdat ik anders de limiet zou overschijden
Als deze alsnog nodig is zal ik hem er nog bij posten.
overige vragen zal ik zow snel mogelijk beantwoorden
vriendelijk groet,
Arie
Ik hoop dat jullie mij hier verder mee kunnen helpen.
verdere uitlaag/vraag onderaan.
Mijn index.php
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
| <? define('IN_PHPBB', true); $site_root_path = '/data/members/paid/a/r/arievdonk.nl/htdocs/www/ledensysteem/'; $phpbb_root_path2 = '../phpBB2/'; $phpbb_root_path = $site_root_path . $phpbb_root_path2; include($phpbb_root_path . 'extension.inc'); include($phpbb_root_path . 'common.php'); $userdata = session_pagestart($user_ip, PAGE_INDEX); init_userprefs($userdata); ?> <?php $begin = microtime(); $split = explode(" ", $begin); $begin_precies = $split[0]; $begin_seconden = date("U"); $begin_tijd = $begin_precies + $begin_seconden; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <script language="JavaScript"> message = "MorgensterSooS^" + "De SooS ^" + "Gereformeerd en gezellig^" + "Lijkt het je wat post dan wat op het forum^" scrollSpeed = 3 lineDelay = 1500 txt = "" function scrollText(pos) { if (message.charAt(pos) != '^') { txt = txt + message.charAt(pos) status = txt pauze = scrollSpeed } else { pauze = lineDelay txt = "" if (pos == message.length-1) pos = -1 } pos++ setTimeout("scrollText('"+pos+"')",pauze) } scrollText(0) </script> <title>MorgensterSooS Den Helder</title> </head> <body background="bg.gif"> <div align="center"> <table bgcolor="#f4ffff" border="0" cellpadding="0" cellspacing="0" width="77" height="853" bordercolor="#FF9224"> <!-- MSTableType="layout" --> <tr> <td align="center" valign="top" height="81" colspan="3"> <img src="../test/headerleft.jpg" ><img src="../images/header.jpg" width="650" height="81"><img src="../test/headerright.jpg"> </td> </tr> <tr> <td valign="top"><?php include('menu.php') ?></td> <td valign="top" height="751"> <!-- MSCellType="ContentBody" --> <?php switch($_GET['page']){ default: include ("../test/home.php"); break; case "statistieken": include ("../test/statistieken/count.php"); break; case "home": include ("../test/home.php"); break; case "fotos": include ("../album/Albumlist.php"); break; case "filmpjes": include ("../test/filmpjes.php"); break; case "contact": include ("../test/contact.php"); break; case "route": include ("../test/route.php"); break; } ?> <p align="center"> </td> </tr> <tr> <td align="center" height="20" width="61"> </td> <td align="center" height="20" width="600"> <p align="center" > <?PHP include_once('../test/statistieken/log.inc.php'); $log = new log(((isset($_GET['page']))) ? $_GET['page'] : 'Beginpagina'); // nu neemt hij dus bij '?page=test' die 'test' ?> <?php $einde = microtime(); $split = explode(" ", $einde); $eind_precies = $split[0]; $eind_seconden = date("U"); $eind_tijd = $eind_precies + $eind_seconden; $verschil = $eind_tijd - $begin_tijd; $verschil = round($verschil,5); echo "Parsetime is: $verschil seconden"; ?> </td> <td align="center" height="20" width="150"> </td> </tr> </table> </div> </body> </html> |
Mijn menu.php
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
| <html> <head><title>Menu</title></head> <link href="style.css" rel="stylesheet" type="text/css"> <body> <table width="135" height="61" border="0" body cellspacing="1" cellpadding="0" bordercolor="#FF9224"> <tr> <td align="center" height="25" valign="middle" bgcolor="#BB685D"> Algemeen</td> </tr> <tr> <td onmouseover="this.bgColor='#F8CF43'" onmouseout="this.bgColor='#FAD863'" height="25" valign="middle" bgcolor="#FAD863" > - <a href="index.php?page=home"> <span style="text-decoration: none">Home</span></a></td> </tr> <tr> <td height="25" valign="middle" onmouseover="this.bgColor='#F8CF43'" onmouseout="this.bgColor='#FAD863'" bgcolor="#FAD863"> - <a href="index.php?page=contact">Contact</a></td> </tr> <tr> <td height="25" valign="middle" onmouseover="this.bgColor='#F8CF43'" onmouseout="this.bgColor='#FAD863'" bgcolor="#FAD863"> - <a href="index.php?page=fotos"> <span style="text-decoration: none">Foto's</span></a></td> </tr> <tr> <td height="25" valign="middle" onmouseover="this.bgColor='#F8CF43'" onmouseout="this.bgColor='#FAD863'" bgcolor="#FAD863"> - <a href="index.php?page=filmpjes">Filmpjes</a></td> </tr> <tr> <td height="25" valign="middle" onmouseover="this.bgColor='#F8CF43'" onmouseout="this.bgColor='#FAD863'" bgcolor="#FAD863"> - Huisregels</td> </tr> <tr> <td height="25" valign="middle" onmouseover="this.bgColor='#F8CF43'" onmouseout="this.bgColor='#FAD863'" bgcolor="#FAD863"> - <a target="_blank" href="../phpBB2/index.php">Forum</a></td> </tr> <tr> <td height="25" valign="middle" onmouseover="this.bgColor='#F8CF43'" onmouseout="this.bgColor='#FAD863'" bgcolor="#FAD863"> <a href="index.php?page=statistieken">- Statistieken</a></td> </tr> <tr> <td height="25" valign="middle" onmouseover="this.bgColor='#F8CF43'" onmouseout="this.bgColor='#FAD863'" bgcolor="#FAD863"> - <a href="index.php?page=route">Route<a/></td> </tr> <tr> <td height="15"</td> </tr> <tr> <td align="center" height="25" valign="middle" bgcolor="#BB685D"> Leden</td> </tr> <tr> <td height="45" valign="midle" bgcolor="#FAD863"> <?php if($userdata['session_logged_in']){ ?> Welkom <?= $userdata[username] ?> <br><br><a href="../phpBB2/login.php?logout=true&redirect=../test/index.php">Uitloggen</a><br> <br> <?= $onlinet ?> <?php }ELSE{ ?> <FORM action='../phpBB2/login.php' method=post> Gebruikersnaam:<br> <input name="username" style="width:110px;height:19px" type="text" class="login" onFocus="clearText(this)" value="" id="text2"><br> Wachtwoord:<br> <INPUT type='hidden' name='redirect' value='../test/index.php'><input name="password" style="width:110px;height:19px" type="password" class="search" onFocus="clearText(this)" value="" id="text4"><br><INPUT class=text type=hidden name=autologin checked> <input name="login" type="submit" value="Inloggen" class="login_button" id="login_button"><br> <a href="../phpBB2/profile.php?mode=register">registreren</a> </form><?php } ?> </tr> <tr> <td height="15"</td> </tr> <tr> <td height="25" align="center" valign="middle" bgcolor="#BB685D"> Foto van de Week</td> </tr> <tr> <td align="center" height="30" bgcolor="#FAD863"><img src="fotovandeweek.jpg"><br>Toch maar op letten<br>hoe je op de<br>foto gaat he..<br> </td> </tr> <tr> <td height="15"</td> </tr> <tr> <td height="25" valign="middle" align="center" bgcolor="#BB685D">Poll </td> </tr> <tr> <td align="left" bgcolor="#FAD863"><? include('../test/poll/index.php')?> </td> </tr> </table> </body> </html> |
En mijn loc.inc.php
Kon er niet meer bij omdat ik anders de limiet zou overschijden
Als deze alsnog nodig is zal ik hem er nog bij posten.
- Zelf denk ik dat het parsen zolang duurt omdat er "onodige"/"extra" informatie instaat.
- Dat het komt door het gebruik van een content systeem (index.php?page=home),
doordat het wel lijkt alsof de hele pagina verniewd word en niet alleen de tabel - Of dat het komt door het includen van men en de statistieken count.
overige vragen zal ik zow snel mogelijk beantwoorden
vriendelijk groet,
Arie
[ Voor 28% gewijzigd door gorgi_19 op 18-04-2005 18:31 ]