Forum Moderators: coopster
My PHP script includes this content.
I've set my .htaccess up to not display the contents of the folder, but have seen recommendations on keeping the content out of the public_html folder altogether.
Where should I place it? Looking at the structure through my FTP program, I see that in the root directory, there is mysite.com - should I place the content folder there, and access it through relative naming, or do I use something like $_SERVER['DOCUMENT_ROOT']?
Thanks, Nick.
If you wanted php files in your www folder but don't want other people to access them you can deny *.inc files or specify them to be handled by the PHP parser (which means that the public can no longer access them as plain text files, which reveal your source). If you're not .htaccess savvy you could just pop a .php extension on the end of the file.