Please explain your question more in details so we can help you better. From your question i understand you have path issue, http://yourdomain.com this is your public_html directory but if you hosted your website into a new directory then you have to access your website like this http://yourdomain.com/subfolder if you are interested to make a varriable for your root path then you can do it with constant for example `
i apologise for my lack of clarification earlier. here is my exact problem:
basically, i have this script which retrieves files and information from various php files in the /public_html/about folder. the script works fine when placed in a file in /public_html/ (the top level of the domain). however, when i move this script to another fold like /public_html/products it stops working.
i know that the issue is that the path i have set is relative (/public_html/ picks it up because it only has to go to /public_html/about to find it.
the issue is with this line (and there are no other problems with the code):