flowingwindrider Posted July 20, 2007 Share Posted July 20, 2007 Is it possible to set an include_path to a location that is above the document_root? My document_root is home/username/public_html. I'd like to set the include_path to home/username/admin/include so that people cannot see source code that contains usernames and passwords to my databases. I believe my server is on a windows platform. Thanks! Link to comment https://forums.phpfreaks.com/topic/60885-solved-include_path/ Share on other sites More sharing options...
benjaminbeazy Posted July 20, 2007 Share Posted July 20, 2007 use ini_set("include_path", "path1/:../path2:/etc"); http://us.php.net/manual/en/ini.core.php#ini.include-path Link to comment https://forums.phpfreaks.com/topic/60885-solved-include_path/#findComment-302943 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.