April 29, 200521 yr 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!
April 29, 200521 yr im not sure what would work in this case but try replace DOCUMENT_ROOT with the follwoing rootdomainHTTP_HOSTPHP_SELFlocaledirrooturl
Create an account or sign in to comment