Retrieve information from different sites

Discussion in 'Site & Server Administration' started by C a s p e r, Oct 8, 2008.

  1. #1
    I have several sites on one server and have a script to show users online and it requires me to install a snippet on the sites index page it then writes the information to a txt file how could I make it so the file that has the line

    <?php
    include('visitor.php'); 
    ?>
    PHP:
    Would be able to retrieve this same information from all the domains on the server?

    I have tried to put the actual address to the file and it didnt work
     
    C a s p e r, Oct 8, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Edit your php.ini file to add a prepend file, or add that snippet to all files on all domains (making sure the visitor.php and include()'d files exist).

    Jay
     
    jayshah, Oct 11, 2008 IP