Announcement

Collapse
No announcement yet.

php includes error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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 20th Jun '05, 2:24am.

    Comment


    • #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


      • #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


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

          Comment

          Loading...
          Working...
          X