access awstats of my server

Discussion in 'PHP' started by PinoyIto, Oct 2, 2008.

  1. #1
    Hello to all,

    Is it possible to create a script that will access my site awstats , for example I want to create a script that will display the keywords search in my awstats.

    If so will you please show me a code to do it or link me to a tutorial or existing script.

    thanks in advance
     
    PinoyIto, Oct 2, 2008 IP
  2. Sillysoft

    Sillysoft Active Member

    Messages:
    177
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #2
    I believe you can have awstats store their data in a database like MySQL. Research that on Google, otherwise you can scrub the page of the awstats to get the information you want:

    
    $stats_page = file_get_contents('path to awstats page to scrub');
    //start trim it down with preg_match to get the data you want
    
    Code (markup):
     
    Sillysoft, Oct 2, 2008 IP