Hello !

I have a website script that needs to be first installed on the server. When i run the install script on my wamp local server it gave me errors for this line

Code:
if(file_exists($_SERVER['DOCUMENT_ROOT'].'/data/uploads/language/config.php')) {
i added folder name in the path and it worked.

i.e
Code:
if(file_exists($_SERVER['DOCUMENT_ROOT'].'/foldername/data/uploads/language/config.php')) {
then i uploaded the site online on **********, direclty uploaded the files in "public_html" folder again it gave me path error on my default path, this time i didn't upload the folder but files inside it.

So i decided to add "public_html" in the string , it didn't work either.

Here is live demo of my site : http://naidese.hostzi.com/install/index.php

Kindly help me solve this problem.

Thanks