azunoman Posted September 13, 2006 Share Posted September 13, 2006 for security and state of mind I want to put all my library code (php, config files, etc) outside of my public_html.Anybody using dreamweaver that can tell me how to set up the site file structure and site management to do this?Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/20648-dreamweaver-8-concealing-php-libraries/ Share on other sites More sharing options...
redbullmarky Posted November 1, 2006 Share Posted November 1, 2006 sorry for late reply, just noticed this one...all you need to do is set up a LOCAL public_html in your site folder and omit the 'host directory' when you set up your site. most often, the root of your site when you set up a site without a host directory is one level above your public_html. my local structure tends to be like:-+local project folder---+public_html-----+images-----+css----- index.php---+scripts---+uploadsonly issue i have when working in this way is that testing scripts outside of your DOCROOT cant be done by calling the scripts directly (ie, preview in browser). I tend to work within the docroot during development, with the intention of moving the files outside at a later stage. Also, preview in browser will add 'public_html' into the URL, but easy enough to workaround by keeping your browser open in the background and refreshing it when you want it checked. Quote Link to comment https://forums.phpfreaks.com/topic/20648-dreamweaver-8-concealing-php-libraries/#findComment-117734 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.