Uploaded documents to a DB and making read only?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rp
Forum Newbie
Posts: 21
Joined: Wed Nov 24, 2004 5:49 am

Uploaded documents to a DB and making read only?

Post by rp »

Hi folks,

Is there a way in which documents uploaded to a php/sql DB can be converted into read only files - eg: I upload a word doc (.doc) but I ONLY want it to be read only by users of the DB?

Don't know if this is possible - the project I am working on may involve any number of file format uploads - .doc. xls .gif etc.. BUT once uploaded we need to make sure that they cannot be changed.
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

It would only be possible through your own interface, i.e. you only access the files through your own methods which then check to see if the data can be modified.
rp
Forum Newbie
Posts: 21
Joined: Wed Nov 24, 2004 5:49 am

Post by rp »

thanks kettle drum, I think I understand
Post Reply