how to change root directory

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

  1. #1
    i have this code

    define('ROOT', slash(dirname(__FILE__)));

    but i get a error like this

    Warning: require(/public_html/dumpplay/system/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 '/public_html/dumpplay/system/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 know the file is in there so how do i change the root to the file?
    the file is /puplic_html/dumpplay/system_config/config.php


    THanks in advance for the help
     
    aznjack31, Apr 3, 2009 IP
  2. aznjack31

    aznjack31 Peon

    Messages:
    579
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    bump please help me
     
    aznjack31, Apr 5, 2009 IP
  3. megacontent

    megacontent Guest

    Messages:
    231
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    By root what are you referring to? Are you talking about the root of your php files?
     
    megacontent, Apr 6, 2009 IP