Gula
asked on
secure files
I learned web develpment myself and the only way I know to secure files is using session object.
As long as the file is .php, it is fine, but the application I'm working on is suppose to serve pdf files,
now I'm in trouble.
I tried to keep files few levels above then the website root folder, but it didn't work.
How can I do this?
I'm saving the links to pdf files in database - MySQL, I know it is possible to store files in databases, but I have never done that and don't know if it works fine.
I thought someone with lot of experience in this could help
Thank you
As long as the file is .php, it is fine, but the application I'm working on is suppose to serve pdf files,
now I'm in trouble.
I tried to keep files few levels above then the website root folder, but it didn't work.
How can I do this?
I'm saving the links to pdf files in database - MySQL, I know it is possible to store files in databases, but I have never done that and don't know if it works fine.
I thought someone with lot of experience in this could help
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
There is no fun without problems :-)
Thanks.
Thanks.
ASKER
The only problem with it was that the system wouldn't allow me to create file that starts with dot (I tried all different access priveleges), so I did it throught servers settings file, I set up realm - they could have mentioned that.