I'm creating a member area for my site and I'm already running. I certify the members using mysql and php and it works really well.
But now problems arise, I would like to present the possibility of members uploading files to the system, and those files should be available only for logging in.
I know that I can store those files in a database or even in a filesystem and can provide Threat PHP services, but when the server uploads a large file Those files that will be too heavy for the server can also be 20 MB or larger.
I would like to serve files to Apali, but we need to find myself a way to automate the http authentication, so users will not need to log in twice. I think it is okay to fix this FTP authentication behind a username and password, such as when a user enters PHP and Miskul authentication, translates them transparently at the same time. The HTTP authentication also needs to be done, each member authentication with the http authentication. Of course I would not like to store those http AUTH credentials in a JavaScript file, but some solutions might work out like AJAX. I'm not sure how to do this I
It seems that you have misleading authorization with HTTP authentication (Where you provide a way to enter) (where you specifically use to authenticate the HTTP protocol, and the browser shows the popup to the user).
You might want to pre-fill so that you can style the login page in order to find out if the user is logged in or may be a good solution for some web sites, PHP or some scripting Must use language; They are fast and optimized for this type of work.
If you really want to work with file handling in web browsers and not in PHP, a solution might be to create a unique, short-term file name. For example, you can create a hard link in the file in PHP and then redirect the user to a temporary filename. Store hard links in the database and delete them after a while.
Comments
Post a Comment