Hi,
As title suggests really. I have a number of php scripts that I don't want to be able to be called from public folder. I have another folder outside my public folder and i set a php include path in one of the .htaccess files.
Just curious to know what all you guys put in an external folder and how you call it? Is there any best practice for this?
I have a number of simple includes files like headers and so on which I will reference on every page. I don't want someone to be able to access this directly in the url bar. Should this be dumped into a non-public folder?
Also I have things like file generation scripts. This obviously should be included outside the public folder.
In summary, should any file which i call using php include() be stored outside public folder so it cannot be accessed directly?
Thanks
As title suggests really. I have a number of php scripts that I don't want to be able to be called from public folder. I have another folder outside my public folder and i set a php include path in one of the .htaccess files.
Just curious to know what all you guys put in an external folder and how you call it? Is there any best practice for this?
I have a number of simple includes files like headers and so on which I will reference on every page. I don't want someone to be able to access this directly in the url bar. Should this be dumped into a non-public folder?
Also I have things like file generation scripts. This obviously should be included outside the public folder.
In summary, should any file which i call using php include() be stored outside public folder so it cannot be accessed directly?
Thanks