Hello, I want to know is there any way to open e folder (password protect folder) with php script ? I want user cann't see password and username, php open folder and user can see folder's content. Example : Password Protect Folder >> domain.com/folder/ Php file >> domain.net/file.php we put user and pass in php file (file.php) and when user click on file.php rediret to folder (not send user and pass in url) and can see folder content.
You cant password protect a folder using php exactly like that. However, you can have a php script that requires login and then shows a list of files. Those files can be protected via php.
Tanx, but I think you don't understand my idea, I want to access to the folder in another site with php file in my site , password of that directory in my php and user only go file.php and then redirect to external domain .