+ 5
How can I provide file individual to all my clients using php such that no one else can see except him after login
5 Respostas
+ 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
+ 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
0
brother I have 10000 user so can I make all files
0
thanks brother
0
hope it works