Jump to content

Permissions - on upload dir


surfllang

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.