Zur Navigation

Datei als Tabelle ausgeben

1 uwe

Hallo,
ich habe folgende log-Datei die als Tabelle gezeigt werden soll.
(bbclone)

Gruss Uwe


<?php
$last =
  array(
    "pages" =>
    array(
      "Test", "index.html"
    ),
    "traffic" =>
    array(
      array(
        "time" => 1205660657, "prx_ip" => "unknown", "ip" => "125.93.180.155", "dns" => "125.93.180.155", "agent" => "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 (ax)", "referer" => "unknown", "page" => 1, "browser" => "firefox", "browser_note" => "1.0.4", "os" => "windowsxp", "bonus_0" => "encU", "bonus_1" => "lang", "bonus_note_1" => "en", "bonus_2" => "activex", "visits" => 1, "ext" => "cn", "id" => 83, 
        "views" =>
        array(
          "1205660657|1|1"
        )
      ),
      array(
        "time" => 1205660807, "prx_ip" => "unknown", "ip" => "84.138.217.116", "dns" => "p548AD974.dip.t-dialin.net", "agent" => "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)", "referer" => "unknown", "page" => 1, "browser" => "explorer", "browser_note" => "7.0", "os" => "windowsxp", "bonus_0" => "dotnet", "bonus_note_0" => "1.1.4322", "visits" => 2, "ext" => "de", "id" => 82, 
        "views" =>
        array(
          "1205659823|1|2"
        ),
        "off" => 1
      ),
      array(
        "time" => 1205661341, "prx_ip" => "unknown", "ip" => "213.122.36.168", "dns" => "host213-122-36-168.in-addr.btopenworld.com", "agent" => "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; BTOW V9.0)", "referer" => "unknown", "page" => 1, "browser" => "explorer", "browser_note" => "7.0", "os" => "windowsxp", "visits" => 1, "ext" => "uk", "id" => 84, 
        "views" =>
        array(
          "1205661341|1|1"
        )
      ),
      array(
        "time" => 1205663602, "prx_ip" => "unknown", "ip" => "80.134.116.14", "dns" => "p5086740E.dip.t-dialin.net", "agent" => "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)", "referer" => "unknown", "page" => 1, "browser" => "explorer", "browser_note" => "6.0", "os" => "windows2k", "bonus_0" => "dotnet", "bonus_note_0" => "1.1.4322", "visits" => 2, "ext" => "de", "id" => 85, 
        "views" =>
        array(
          "1205663036|1|2"
        ),
        "off" => 1
      ),
      array(
        "time" => 1205666226, "prx_ip" => "unknown", "ip" => "66.249.66.234", "dns" => "crawl-66-249-66-234.googlebot.com", "agent" => "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)", "referer" => "unknown", "page" => 1, "robot" => "google", "robot_note" => "2.1", "visits" => 1, "ext" => "us", "id" => 86, 
        "views" =>
        array(
          "1205666226|1|1"
        )
      ),
      array(
        "time" => 1205669886, "prx_ip" => "unknown", "ip" => "83.133.125.202", "dns" => "bigfinder.de", "agent" => "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; de)", "referer" => "http://www.bigfinder.de/", "page" => 1, "browser" => "explorer", "browser_note" => "6.0", "os" => "windowsxp", "bonus_0" => "lang", "bonus_note_0" => "de", "visits" => 1, "ext" => "de", "id" => 87, 
        "views" =>
        array(
          "1205669886|1|1"
        ),
        "search" => "-"
      ),
      array(
        "time" => 1205669888, "prx_ip" => "unknown", "ip" => "83.133.125.202", "dns" => "bigfinder.de", "agent" => "unknown", "referer" => "unknown", "page" => 1, "browser" => "other", "os" => "other", "visits" => 2, "ext" => "de", "id" => 88, 
        "views" =>
        array(
          "1205669886|1|2"
        ),
        "off" => 1
      ),
      array(
        "time" => 1205671689, "prx_ip" => "unknown", "ip" => "84.131.213.244", "dns" => "p5483D5F4.dip.t-dialin.net", "agent" => "Mozilla/4.0 (compatible; MSIE 7.0; TOB 6.05; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)", "referer" => "http://www.suche4all.de/site436de.html", "page" => 1, "browser" => "explorer", "browser_note" => "7.0", "os" => "windowsxp", "bonus_0" => "dotnet", "bonus_note_0" => "1.1.4322", "visits" => 3, "ext" => "de", "id" => 89, 
        "views" =>
        array(
          "1205670372|1|3"
        ),
        "search" => "-", "off" => 2
      ),
      array(
        "time" => 1205672902, "prx_ip" => "unknown", "ip" => "77.225.29.64", "dns" => "static-64-29-225-77.ipcom.comunitel.net", "agent" => "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)", "referer" => "unknown", "page" => 1, "browser" => "explorer", "browser_note" => "6.0", "os" => "windows98", "visits" => 1, "ext" => "es", "id" => 90, 
        "views" =>
        array(
          "1205672902|1|1"
        )
      ),
      array(
        "time" => 1205673013, "prx_ip" => "unknown", "ip" => "202.114.20.62", "dns" => "202.114.20.62", "agent" => "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)", "referer" => "unknown", "page" => 1, "browser" => "explorer", "browser_note" => "6.0", "os" => "windowsxp", "visits" => 2, "ext" => "cn", "id" => 91, 
        "views" =>
        array(
          "1205672991|1|2"
        ),
        "off" => 1
      ),
      array(
        "time" => 1205673837, "prx_ip" => "unknown", "ip" => "80.140.207.139", "dns" => "p508CCF8B.dip.t-dialin.net", "agent" => "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)", "referer" => "unknown", "page" => 1, "browser" => "explorer", "browser_note" => "7.0", "os" => "windowsxp", "visits" => 1, "ext" => "de", "id" => 92, 
        "views" =>
        array(
          "1205673837|1|1"
        )
      ),
      array(
        "time" => 1205673846, "prx_ip" => "unknown", "ip" => "65.55.104.159", "dns" => "bl1sch2042506.phx.gbl", "agent" => "msnbot/1.1 (+http://search.msn.com/msnbot.htm)", "referer" => "unknown", "page" => 1, "robot" => "msnbot", "robot_note" => "1.1", "visits" => 1, "ext" => "us", "id" => 93, 
        "views" =>
        array(
          "1205673846|1|1"
        )
      ),
      array(
        "time" => 1205673885, "prx_ip" => "unknown", "ip" => "65.55.232.36", "dns" => "bl1sch2041407.phx.gbl", "agent" => "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322)", "referer" => "http://search.live.com/results.aspx?q=nordsee&amp;mrt=en-us&amp;FORM=LIVSOP", "page" => 1, "browser" => "explorer", "browser_note" => "7.0", "os" => "windows2003", "bonus_0" => "dotnet", "bonus_note_0" => "1.1.4322", "visits" => 1, "ext" => "us", "id" => 94, 
        "views" =>
        array(
          "1205673885|1|1"
        ),
        "search" => "nordsee"
      ),
      array(
        "time" => 1205674291, "prx_ip" => "unknown", "ip" => "84.131.213.244", "dns" => "p5483D5F4.dip.t-dialin.net", "agent" => "Mozilla/4.0 (compatible; MSIE 7.0; TOB 6.05; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)", "referer" => "http://www.google.de/search?hl=de&amp;q=behindertengerechte+Ferienwohnung+Nordsee&amp;btnG=Google-Suche&amp;meta=lr%3Dlang_de", "page" => 1, "browser" => "explorer", "browser_note" => "7.0", "os" => "windowsxp", "bonus_0" => "dotnet", "bonus_note_0" => "1.1.4322", "visits" => 1, "ext" => "de", "id" => 95, 
        "views" =>
        array(
          "1205674291|1|1"
        ),
        "search" => "behindertengerechte ferienwohnung nordsee"
      ),
      array(
        "time" => 1205675015, "prx_ip" => "unknown", "ip" => "91.64.59.193", "dns" => "91.64.59.193", "agent" => "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;  Embedded Web Browser from: http://bsalsa.com/; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322)", "referer" => "http://www.google.de/search?hl=de&amp;q=ferienhaus+mit+pflegebett&amp;meta=", "page" => 1, "browser" => "explorer", "browser_note" => "7.0", "os" => "windowsvista", "bonus_0" => "dotnet", "bonus_note_0" => "2.0.50727", "visits" => 1, "ext" => "de", "id" => 96, 
        "views" =>
        array(
          "1205675015|1|1"
        ),
        "search" => "ferienhaus mit pflegebett"
      ),
      array(
        "time" => 1205675188, "prx_ip" => "unknown", "ip" => "84.129.42.185", "dns" => "p54812AB9.dip0.t-ipconnect.de", "agent" => "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)", "referer" => "http://www.google.de/search?sourceid=navclient&amp;hl=de&amp;ie=UTF-8&amp;rlz=1T4ADBS_de___DE218&amp;q=ferienhaus+Nordsee%3b+behindertengerecht", "page" => 1, "browser" => "explorer", "browser_note" => "7.0", "os" => "windowsxp", "bonus_0" => "dotnet", "bonus_note_0" => "2.0.50727", "visits" => 1, "ext" => "de", "id" => 97, 
        "views" =>
        array(
          "1205675188|1|1"
        ),
        "search" => "ferienhaus nordsee behindertengerecht"
      ),
      array(
        "time" => 1205676129, "prx_ip" => "unknown", "ip" => "84.150.237.232", "dns" => "p5496EDE8.dip.t-dialin.net", "agent" => "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322)", "referer" => "http://www.natko.de/index.php/details/731/4/54", "page" => 1, "browser" => "explorer", "browser_note" => "6.0", "os" => "windowsmc", "os_note" => "4.0", "bonus_0" => "dotnet", "bonus_note_0" => "1.0.3705", "visits" => 1, "ext" => "de", "id" => 98, 
        "views" =>
        array(
          "1205676129|1|1"
        ),
        "search" => "-"
      ),
      array(
        "time" => 1205676476, "prx_ip" => "unknown", "ip" => "80.130.228.130", "dns" => "p5082E482.dip.t-dialin.net", "agent" => "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)", "referer" => "unknown", "page" => 1, "browser" => "explorer", "browser_note" => "7.0", "os" => "windowsxp", "bonus_0" => "dotnet", "bonus_note_0" => "1.1.4322", "visits" => 2, "ext" => "de", "id" => 99, 
        "views" =>
        array(
          "1205676341|1|2"
        ),
        "off" => 1
      ),
      array(
        "time" => 1205677250, "prx_ip" => "unknown", "ip" => "84.131.213.244", "dns" => "p5483D5F4.dip.t-dialin.net", "agent" => "Mozilla/4.0 (compatible; MSIE 7.0; TOB 6.05; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)", "referer" => "unknown", "page" => 1, "browser" => "explorer", "browser_note" => "7.0", "os" => "windowsxp", "bonus_0" => "dotnet", "bonus_note_0" => "1.1.4322", "visits" => 1, "ext" => "de", "id" => 100, 
        "views" =>
        array(
          "1205677250|1|1"
        )
      ),
      array(
        "time" => 1205677724, "prx_ip" => "unknown", "ip" => "91.33.107.147", "dns" => "p5B216B93.dip.t-dialin.net", "agent" => "Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12", "referer" => "http://www.google.de/search?hl=de&amp;q=nordsee%2Brollstuhl%2Burlaub&amp;btnG=Google-Suche&amp;meta=", "page" => 1, "browser" => "firefox", "browser_note" => "2.0.0.12", "os" => "windowsvista", "bonus_0" => "encU", "bonus_1" => "lang", "bonus_note_1" => "de", "visits" => 1, "ext" => "de", "id" => 101, 
        "views" =>
        array(
          "1205677724|1|1"
        ),
        "search" => "nordsee rollstuhl urlaub"
      ),
      array(
        "time" => 1205679550, "prx_ip" => "unknown", "ip" => "66.249.66.234", "dns" => "crawl-66-249-66-234.googlebot.com", "agent" => "Mediapartners-Google", "referer" => "unknown", "page" => 1, "robot" => "mediapartners", "visits" => 1, "ext" => "us", "id" => 103, 
        "views" =>
        array(
          "1205679550|1|1"
        )
      ),
      array(
        "time" => 1205679653, "prx_ip" => "unknown", "ip" => "84.131.213.244", "dns" => "p5483D5F4.dip.t-dialin.net", "agent" => "Mozilla/4.0 (compatible; MSIE 7.0; TOB 6.05; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)", "referer" => "unknown", "page" => 1, "browser" => "explorer", "browser_note" => "7.0", "os" => "windowsxp", "bonus_0" => "dotnet", "bonus_note_0" => "1.1.4322", "visits" => 2, "ext" => "de", "id" => 102, 
        "views" =>
        array(
          "1205679539|1|2"
        ),
        "off" => 1
      ),
      array(
        "time" => 1205679772, "prx_ip" => "unknown", "ip" => "65.55.104.159", "dns" => "bl1sch2042506.phx.gbl", "agent" => "msnbot/1.1 (+http://search.msn.com/msnbot.htm)", "referer" => "unknown", "page" => 1, "robot" => "msnbot", "robot_note" => "1.1", "visits" => 1, "ext" => "us", "id" => 104, 
        "views" =>
        array(
          "1205679772|1|1"
        )
      ),
      array(
        "time" => 1205680150, "prx_ip" => "unknown", "ip" => "195.4.46.193", "dns" => "F2ec1.f.ppp-pool.de", "agent" => "Opera/9.20 (Windows NT 5.1; U; de)", "referer" => "unknown", "page" => 1, "browser" => "opera", "browser_note" => "9.20", "os" => "windowsxp", "bonus_0" => "encU", "bonus_1" => "lang", "bonus_note_1" => "de", "visits" => 1, "ext" => "de", "id" => 105, 
        "views" =>
        array(
          "1205680150|1|1"
        )
      ),
      array(
        "time" => 1205680726, "prx_ip" => "unknown", "ip" => "84.187.49.218", "dns" => "p54BB31DA.dip0.t-ipconnect.de", "agent" => "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1) Gecko/20061010 Firefox/2.0", "referer" => "http://www.google.de/search?q=rollstuhlgeeignete&amp;hl=de&amp;client=firefox-a&amp;channel=s&amp;rls=org.mozilla:de:official&amp;start=30&amp;sa=N", "page" => 1, "browser" => "firefox", "browser_note" => "2.0", "os" => "windowsxp", "bonus_0" => "encU", "bonus_1" => "lang", "bonus_note_1" => "de", "visits" => 2, "ext" => "de", "id" => 107, 
        "views" =>
        array(
          "1205680726|1|2"
        ),
        "search" => "rollstuhlgeeignete", "off" => 1
      ),
      array(
        "time" => 1205682286, "prx_ip" => "unknown", "ip" => "87.183.251.20", "dns" => "p57B7FB14.dip.t-dialin.net", "agent" => "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)", "referer" => "http://www.hilfsmittelmanager.eu/barrierefreireisen/rollihotel/index.html", "page" => 1, "browser" => "explorer", "browser_note" => "7.0", "os" => "windowsxp", "bonus_0" => "dotnet", "bonus_note_0" => "1.1.4322", "visits" => 3, "ext" => "de", "id" => 106, 
        "views" =>
        array(
          "1205680304|1|3"
        ),
        "search" => "-", "off" => 2
      ),
      array(
        "time" => 1205682608, "prx_ip" => "unknown", "ip" => "84.190.133.2", "dns" => "p54BE8502.dip0.t-ipconnect.de", "agent" => "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)", "referer" => "http://www.orthopoint.com/links.html", "page" => 1, "browser" => "explorer", "browser_note" => "7.0", "os" => "windowsxp", "bonus_0" => "dotnet", "bonus_note_0" => "1.1.4322", "visits" => 1, "ext" => "de", "id" => 108, 
        "views" =>
        array(
          "1205682608|1|1"
        ),
        "search" => "-"
      ),
      array(
        "time" => 1205683380, "prx_ip" => "unknown", "ip" => "91.33.232.213", "dns" => "p5B21E8D5.dip.t-dialin.net", "agent" => "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/523.12.2 (KHTML, like Gecko) Version/3.0.4 Safari/523.12.2", "referer" => "http://www.google.de/search?q=Urlaub+mit+Gehbehinderung&amp;hl=de&amp;start=10&amp;sa=N", "page" => 1, "browser" => "safari", "browser_note" => "3.0.4", "os" => "macosx", "bonus_0" => "encU", "bonus_1" => "lang", "bonus_note_1" => "de", "visits" => 1, "ext" => "de", "id" => 109, 
        "views" =>
        array(
          "1205683380|1|1"
        ),
        "search" => "urlaub mit gehbehinderung"
      ),
      array(
        "time" => 1205683634, "prx_ip" => "unknown", "ip" => "208.80.193.47", "dns" => "static-208-80-193-47.as13448.com", "agent" => "Mozilla/5.0 (compatible; Konqueror/3.1-rc4; i686 Linux; 20020622)", "referer" => "unknown", "page" => 1, "robot" => "websense", "visits" => 1, "ext" => "us", "id" => 111, 
        "views" =>
        array(
          "1205683634|1|1"
        )
      ),
      array(
        "time" => 1205683658, "prx_ip" => "unknown", "ip" => "83.236.63.234", "dns" => "port-83-236-63-234.dynamic.qsc.de", "agent" => "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4", "referer" => "unknown", "page" => 1, "browser" => "firefox", "browser_note" => "1.0.4", "os" => "macosx", "bonus_0" => "encU", "bonus_1" => "lang", "bonus_note_1" => "de", "visits" => 1, "ext" => "de", "id" => 112, 
        "views" =>
        array(
          "1205683658|1|1"
        )
      ),
      array(
        "time" => 1205685236, "prx_ip" => "unknown", "ip" => "88.77.205.247", "dns" => "dslb-088-077-205-247.pools.arcor-ip.net", "agent" => "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322)", "referer" => "http://www.google.de/search?hl=de&amp;sa=X&amp;oi=spell&amp;resnum=0&amp;ct=result&amp;cd=1&amp;q=Behindertengerecht+Urlaub+machen&amp;spell=1", "page" => 1, "browser" => "explorer", "browser_note" => "6.0", "os" => "windowsxp", "bonus_0" => "funweb", "bonus_1" => "dotnet", "bonus_note_1" => "1.1.4322", "visits" => 2, "ext" => "de", "id" => 110, 
        "views" =>
        array(
          "1205683500|1|2"
        ),
        "search" => "behindertengerecht urlaub machen", "off" => 1
      ),
      array(
        "time" => 1205685956, "prx_ip" => "unknown", "ip" => "84.184.58.253", "dns" => "p54B83AFD.dip0.t-ipconnect.de", "agent" => "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12", "referer" => "http://www.google.com/search?q=Urlaub+f%C3%BCr+Senioren+ohne+Auto&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:de:official&amp;client=firefox-a", "page" => 1, "browser" => "firefox", "browser_note" => "2.0.0.12", "os" => "windowsxp", "bonus_0" => "encU", "bonus_1" => "lang", "bonus_note_1" => "de", "visits" => 1, "ext" => "de", "id" => 113, 
        "views" =>
        array(
          "1205685956|1|1"
        ),
        "search" => "urlaub für senioren ohne auto"
      ),

22.03.2008 10:22 | geändert von Jörg: 22.03.2008 10:59

2 Jörg

Hallo Uwe,

irgendwo scheint das Forum einen Bug zu haben, dass dein Beitrag nicht angezeigt wird - ich schau mal, ob ich den beheben kann..

Eidt
Ich habe den Eintrag gekürzt - jetzt wird er angezeigt...

22.03.2008 10:46 | geändert: 22.03.2008 11:00

3 Jörg

Irgendwie so in der ARt würde ich vorgehen (ungetestet):

<table> 
<?php

foreach ($last as $lastrow) {
    echo '<tr>';
    foreach ($lastrow as $lastcell) {
        echo '<td>' . $lastcell . '</td>';
    }
    echo '</tr>';
}

?> 
</table>

22.03.2008 11:21

Beitrag schreiben (als Gast)





[BBCode-Hilfe]