php includes error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • snyx
    Senior Member
    • Aug 2000
    • 1070
    • 3.5.x

    php includes error

    Warning: Division by zero in /global.php(389) : eval()'d code on line 10

    Warning: Division by zero in /global.php(389) : eval()'d code on line 10

    Warning: Unknown(php’): failed to open stream: No such file or directory in /global.php(389) : eval()'d code on line 10

    Warning: (null)(): Failed opening 'php’' for inclusion (include_path='.:/php/includes:/usr/share/php') in /global.php(389) : eval()'d code on line 10
    my phpinclude_start file reads..

    ob_start();
    include_once(‘/adsense/random.php’);
    $adsense = ob_get_contents();
    ob_end_clean();
    I just don't get it!
    MSN: [email protected] | MAIL: [email protected] | FOLIO: mholman.com
  • Silverwolf
    Member
    • Jul 2003
    • 49
    • 3.6.x

    #2
    The quotes are the culprit here...

    PHP Code:
    include_once('/adsense/random.php'); 
    Change your include_once to that one and it should work
    Last edited by Silverwolf; Mon 20 Jun '05, 2:24am.

    Comment

    • snyx
      Senior Member
      • Aug 2000
      • 1070
      • 3.5.x

      #3
      now I get this error..
      Warning: Unknown(/adsense/random.php): failed to open stream: No such file or directory in /global.php(389) : eval()'d code on line 10

      Warning: (null)(): Failed opening '/adsense/random.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /global.php(389) : eval()'d code on line 10
      MSN: [email protected] | MAIL: [email protected] | FOLIO: mholman.com

      Comment

      • Marco van Herwaarden
        Senior Member
        • Nov 2004
        • 6999
        • 3.8.x

        #4
        Change that to:
        PHP Code:
        include_once('./adsense/random.php'); 
        If the script is located in the subdirectory 'adsense' in your forumhome directory.
        Otherwise provide the correct path from your forumhome.
        Want to take your board beyond the standard vBulletin features?
        Visit the official Member to Member support site for vBulletin Modifications: www.vbulletin.org

        Comment

        • snyx
          Senior Member
          • Aug 2000
          • 1070
          • 3.5.x

          #5
          thank you, works great
          MSN: [email protected] | MAIL: [email protected] | FOLIO: mholman.com

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...