Jelmer - 08 August 2009 02:59 PM
Application & System directory placement
An absolute best practice is to put the system & application directories outside the webroot. If your main index.php is in your FTP in a directory like /public_html/ try if you can upload the system directory to the root as /system/. That way no one can access your PHP files except through the index.php.
Don’t forget to change the values $system_folder and $application_folder in the main index.php file. $system_folder should be relative to the index.php file, $application_folder should be relative to the system folder.
Can someone explain how do to this a bit more? I’ve tried searching the forums, didnt have much luck.
So I’ve got
/system
/application
/public_html/index.php
and in index.php I’ve got
$system_path = '/system';
$application_folder = '/application';
but it keeps failing saying it cant find system or application folders?