putting folders above public_html in a shared hosting environment

Posted by redconservatory on Server Fault See other posts from Server Fault or by redconservatory
Published on 2012-03-20T21:20:09Z Indexed on 2012/03/25 11:32 UTC
Read the original article Hit count: 247

Filed under:
|

On my local environment, the following settings work in my index.php file:

$system_path = '../../ci/system/';
$application_folder = '../../ci/application';

My folder structure looks like this:

-ci
---system
---application

-public_html
---site
----index.php

This works on my local environment, but when I upload my files, I get an error message:

Your system folder path does not appear to be set correctly. 
Please open the following file and correct this: index.php

I tried the following:

$system_path = dirname(__FILE__).'../../ci/system/';
$application_folder = dirname(__FILE__).'../../ci/application';

© Server Fault or respective owner

Related posts about php

Related posts about path