Setting A Root Path For Everything

Discussion in 'PHP' started by gobbly2100, Feb 14, 2009.

  1. #1
    Hey people,

    I am trying to setup a local enviroment to test all my scripts and such before going live but I need to find a way I can set a different root path on so that weather I run the scripts on my server or local machine they will not have any problems finding the correct path.

    Currently if I try running any of my sites localy I get errors and all sorts because it is looking in the wrong places for everything so any help on this guys?
     
    gobbly2100, Feb 14, 2009 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    jestep, Feb 15, 2009 IP