hello , i have xampp and a windows xp operating system , and i am studying php in my pc/testing server..... what i want to do ? i want to enable my php script to be able to access "read/write" a specific directory but outside the web root or the "htdocs" , but in the same time i dont want web browsers or visitors to be able to access this directory in any way from the web "only my php script", so i dont want to supply them any web link or "to make alias in the httpd.conf". an example for such a directory name ? c:/xampp/uploaded_files my website resides in c:/xampp/htdocs or what is called http://localhost i am doing this to prevent hackers from uploading executable files to my website...like php files for example. best regards.
hello , problem resolved , i discovered that accessing files/directories outside of the webroot by php scripts has nothing to do with apache configurations like the file httpd.conf or .htaccess file, php that come with xampp testing server is configured already to access any file or directory from any where in the available root directories in the testing server machine. apache configurations can limit the access of the public web visitors to certain directories in the webroot by demanding some passwords or prevent access at all to some directories inside the webroot and also it can permit the use of a directory outside the webroot also but it have nothing to do with the php. please let me know your opinion on my conclusion about this issue....