Jump to content

Recommended Posts

Posted

I have a CMS in php, and I am trying to set it up so I can view the site locally.

I had setup my MySQL database and everything, but for some reason I keep getting an error that is being referred to something in regards to my root_path.

This is what I have at the beginning of every file:

// get the document root - for use on include files

$root_path=$_SERVER['DOCUMENT_ROOT'];

Am I suppose to change what is inside ['DOCUMENT_ROOT'] ? Maybe to localhost ?

I am sorry if this is not enough info, but I was able to view some of the content, but every error through out a problem with my root path.

Is there something I need to do to make it so I can view these PHP files locally only?

Do you require any other info?

I had installed my Apache and MySQL by using WAMP.

Thanks for any help!


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...