optikalefx Posted October 28, 2007 Share Posted October 28, 2007 how can i make it so that my php files can use my xml document, but you cant go to www.mysite.com/file.xml ? Link to comment https://forums.phpfreaks.com/topic/75065-i-dont-want-people-to-see-my-xml-files/ Share on other sites More sharing options...
kratsg Posted October 28, 2007 Share Posted October 28, 2007 Why not stick it above the public_html directory. This way, your scripts still access them, but your general public does not. Link to comment https://forums.phpfreaks.com/topic/75065-i-dont-want-people-to-see-my-xml-files/#findComment-379656 Share on other sites More sharing options...
optikalefx Posted October 29, 2007 Author Share Posted October 29, 2007 how do i link the file that way? my index file is at /htdocs/index.htm htdocs is public. how do i make a link to before htdocs? Link to comment https://forums.phpfreaks.com/topic/75065-i-dont-want-people-to-see-my-xml-files/#findComment-380421 Share on other sites More sharing options...
kratsg Posted October 30, 2007 Share Posted October 30, 2007 well, to go up a directory, for example, if you have this structure /www/webs/public_html/script.php and the xml is in /www/webs/above_public_html.xml script.php would link: ../above_public_html.xml Link to comment https://forums.phpfreaks.com/topic/75065-i-dont-want-people-to-see-my-xml-files/#findComment-381452 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.