The best way to learn how to use the WebCore is by example. See the documentation for more information.
The requested URL is always shown first; if a page uses one or more WebCore templates, those are shown afterwards.
00 <?php
01 include_once ('quake/init.php');
02
03 $Page->title->subject = 'Checking Your Ping';
04
05 $Page->location->append ("Quake III Arena", "./");
06 $Page->location->append ("Checking Ping");
07
08 $Page->start_display ();
09 ?>
10 <div class="main-box">
11 <div class="text-flow">
12 <h3>Pinging on Windows</h3>
13 <p>Before you can check the ping, you need to know the address of the server
14 you wish to check. Windows 98 comes with a utility called ping. Open a
15 DOS box from the start menu and type:</p>
16 <pre><code>ping ###.###.###.###</code></pre>
17 <p>If your address is <code>63.64.121.169</code>, you should see:</p>
18 <pre><code>Pinging 63.64.121.169 with 32 bytes of data:
19 Reply from 63.64.121.169: bytes=32 time=662ms TTL=248
20 Reply from 63.64.121.169: bytes=32 time=607ms TTL=248
21 Reply from 63.64.121.169: bytes=32 time=593ms TTL=248
22 Reply from 63.64.121.169: bytes=32 time=645ms TTL=248
23
24 Ping statistics for 63.64.121.169:
25 Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
26 Approximate round trip times in milli-seconds:
27 Minimum = 593ms, Maximum = 662ms, Average = 626ms</code></pre>
28 <p>The ping you are looking for is the <span class="reference"><code>time=###ms</code></span>
29 part. As you can see, the server I'm pinging isn't very playable right
30 now. Also Check the <code>Packets:</code> line (3rd from bottom). Make
31 sure you didn't lose any. If you lose more than 10% of the packets, you'll
32 have problems playing on that server. Also, check the average ping versus
33 the maximum and minimum. If it covers too broad a range, that means the
34 server won't be too steady and will be hard to play on, even if it has
35 good ping.</p>
36 <h3>Advanced</h3>
37 <p>If you want to just keep pinging a site forever (until you tell it to
38 stop), type:</p>
39 <pre><code>ping -t ###.###.###.###</code></pre>
40 <p>In this mode, type 'Ctrl-Break' to show a status report (like the bottom
41 portion of the report above). This won't stop the pinging though. Type
42 'Ctrl-C' to stop it.</p>
43 <p>If you want to ping more than 4 times, but less than forever, type:</p>
44 <pre><code>ping -n$ ###.###.###.###</code></pre>
45 <p>where $ is the number of times you want to ping.</p>
46 <pre><code>ping -n20 ###.###.###.###</code></pre>
47 <p>pings a site 20 times.</p>
48 </div>
49 </div>
50 <?php $Page->finish_display (); ?>
51
52