Looking for special php script (code)

Discussion in 'PHP' started by MiamiHost, Nov 5, 2005.

  1. #1
    we use phpBB and a phpBB portal on one of our site and yeaterday I seen a site using the same thing and they had a box on there portal that was pulling all the SE rankings from several search engines and displaying the results in that box

    anyone seen anything like this? I thought I saved the site for future looksies but for the life of me I can not find it

    also.. anyone here know how to pull AWStats results from a secured login and place the output on a php page

    I seen it done and asked the person twice but he not given me solution as of yet

    is this a secret or something LOL
     
    MiamiHost, Nov 5, 2005 IP
  2. durango

    durango Guest

    Messages:
    83
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    For retrieving content from other sites in PHP, try using the CURL libraries.

    You can access secure websites using CURL by specifying authentication information such as username and password.
     
    durango, Nov 5, 2005 IP
  3. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You often don't need curl. If you only have HTTP authentication on your AWStats, you can do this:
    $page_cont = file_get_contents ('http://awstats_username:awstats_passwd@www.domain_and_path.com/to/my/awstats/stats.php');
    PHP:
     
    exam, Nov 5, 2005 IP
  4. MiamiHost

    MiamiHost Peon

    Messages:
    238
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks for the replies

    I seen someone doing this with a .php file that would show the awstats

    any ideas?
     
    MiamiHost, Nov 5, 2005 IP