help! whats wrong with this code?

Discussion in 'Programming' started by aznjack31, Apr 2, 2009.

  1. #1
    i can't see anything wrong here....can you spot it out?


    here is the error code
    Warning: require(/home/USER/public_html/dumpplaysystem/system_.php) [function.require]: failed to open stream: No such file or directory in /home/ownzer13/public_html/dumpplay/system_config/config.php on line 27

    Fatal error: require() [function.require]: Failed opening required '/home/USER/public_html/dumpplaysystem/system_.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ownzer13/public_html/dumpplay/system_config/config.php on line 27

    i dunno whats wrong on line 27

    1.
    <?php
    2.

    3.

    4.
    /* Database Settings*/
    5.
    define('user', 'ownzer13'); // Database Username
    6.
    define('pass', '123abc'); // Database Password
    7.
    define('host', 'localhost'); //Only change if you have diffrent one
    8.
    define('db', 'ownzer13_dumpplay'); // Database name
    9.

    10.
    @mysql_connect(host,user,pass) or die(mysql_error()); // DO NOT CHANGE
    11.
    @mysql_select_db(db) or die(mysql_error()); // DO NOT CHANGE
    12.

    13.
    /* Settings */
    14.
    define('URL', 'http://quicknrandom.info/'); // Remember to leave / at the end.
    15.
    define('TITLE', 'Quick N' Random');
    16.
    define('NAME', 'Quick N' Random');
    17.
    define('META', 'META TAGS HERE');
    18.
    define('DESC', 'SITE DESCRIPTION');
    19.
    define('PATH', '/home/public_html/dumpplay'); // Remember to leave / forward slash at the end
    20.
    define('SEO', '1'); // 1=SEO urls on & 0=Non Seo urls
    21.
    define('ADS', '1'); // 1=Ads on & 0=Ads Off
    22.
    define('BLOG', '1'); // 1= Allow blog code sharing & 0= Will not show blog code for sharing
    23.

    24.

    25.
    /* Paths | Functions | Settings - DO NOT CHANGE!!! */
    26.

    27.
    require(''.PATH.'system/system_.php');
    28.
    define('ROOT', slash(dirname(__FILE__)));
    29.
    define('TEMPLATE', 'templates/');
    30.
    define('TEMPLATESIMG', URL . 'templates/images/');
    31.
    define('CSS', URL . '/templates/css.css');
    32.
    define('IMG_DIR', ROOT . 'imgs/');
    33.
    define('FUNCTIONS', ROOT . 'source/system_.php');
    34.

    35.
    ?>
     
    aznjack31, Apr 2, 2009 IP
  2. emed

    emed Peon

    Messages:
    70
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    read the instruccions again:
    19.
    define('PATH', '/home/public_html/dumpplay'); // Remember to leave / forward slash at the end

    you forgot the slash at the end
    define('PATH', '/home/public_html/dumpplay/');
     
    emed, Apr 2, 2009 IP