+ 5

How can I provide file individual to all my clients using php such that no one else can see except him after login

4th Aug 2018, 4:42 PM
Mk Vashist
Mk Vashist - avatar
5 Antworten
+ 1
That's fine. just create a prototype file with all the contents you need. then just copy that file for every user. https://code.sololearn.com/wvf5ri8BzY40/?ref=app
5th Aug 2018, 7:14 AM
Aidan Haddon-Wright
Aidan Haddon-Wright - avatar
+ 1
I can think of a few solutions: put the file in a directory with the client's user ID as name. Any files the client needs to see go into this directory. Same as above but if it's just one file, the filename can be the same as the clients user ID Use a database to store which files belong to what client so when they request to access a file, you check if they own the file first. (the database doesn't have to be MySQL or anything fancy, it could just be a single config file) finally you'll need to check if there's a client logged in first. if not then only files that are public should be viewable
5th Aug 2018, 6:48 AM
Aidan Haddon-Wright
Aidan Haddon-Wright - avatar
0
brother I have 10000 user so can I make all files
5th Aug 2018, 6:59 AM
Mk Vashist
Mk Vashist - avatar
0
thanks brother
5th Aug 2018, 7:15 AM
Mk Vashist
Mk Vashist - avatar
0
hope it works
5th Aug 2018, 7:15 AM
Mk Vashist
Mk Vashist - avatar