surfllang Posted June 18, 2008 Share Posted June 18, 2008 Hi, This is a little different to what I have done before,s o I am wondering how to make it 'secure'?? Here is the scenario: 1) Users of the local network can load files into a directory on a website via a samba share. 2) PHP then processes those files ( opens txt files and reads the contents into a database ). So ok, my problem is that PHP needs to be able to access the directory to read the files. However, I dont want to allow users to put .php files into the directory and then execute them. Normally a solution might be to have the folder outside of the web root. However this is not an optino on the hosting setup. Any ideas?? Please ask if you need any further information. Cheers, James Link to comment https://forums.phpfreaks.com/topic/110698-permissions-on-upload-dir/ Share on other sites More sharing options...
Jabop Posted June 18, 2008 Share Posted June 18, 2008 Lookup chmod calculator. chmod($file,octals); at your discretion Link to comment https://forums.phpfreaks.com/topic/110698-permissions-on-upload-dir/#findComment-567936 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.