SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Non-Member
    Join Date
    May 2006
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question vBulletin Sitewide Visitors Online

    I want to be able to display the total visitors on my site, not just the ones viewing my forum. I tried to include global.php on all my non-vBulletin pages, but I get the following errors:

    Warning: main(./forums/global.php) [function.main]: failed to open stream: No such file or directory in /home/nexgen/public_html/test.php on line 2

    Warning: main(./forums/global.php) [function.main]: failed to open stream: No such file or directory in /home/nexgen/public_html/test.php on line 2

    Fatal error: main() [function.require]: Failed opening required './forums/global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nexgen/public_html/test.php on line 2

  2. #2
    SitePoint Evangelist superuser2's Avatar
    Join Date
    Aug 2006
    Posts
    598
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You'll need to use an absolute path for global.php. Like

    /home/myusername/webroot/global.php

    Find out what the absolute server path to that file is. If you need to, ask your host (or search their FAQ).

  3. #3
    Non-Member
    Join Date
    May 2006
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did that and got these errors:

    Warning: main(/home/nexgen/public_html/new/includes/init.php) [function.main]: failed to open stream: No such file or directory in /home/nexgen/public_html/forum/global.php on line 20

    Fatal error: main() [function.require]: Failed opening required '/home/nexgen/public_html/new/includes/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nexgen/public_html/forum/global.php on line 20

  4. #4
    SitePoint Evangelist superuser2's Avatar
    Join Date
    Aug 2006
    Posts
    598
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Then the path is wrong. Find out where the file actually is.

  5. #5
    Non-Member
    Join Date
    May 2006
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ...that is where the file actually is. I am not an idiot, I know how to code, which is why I am not sure what is wrong.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •