ki Posted December 17, 2006 Share Posted December 17, 2006 How would I go about writing a username/password to a protected folder? Such as domain.com/pwprotected? Quote Link to comment Share on other sites More sharing options...
trq Posted December 17, 2006 Share Posted December 17, 2006 Folders (directories) cannot store data, only files. To write to a file use the combination of [url=http://php.net/fopen]fopen[/url] and [url=http://php.net/fwrite]fwrite[/url]. Quote Link to comment Share on other sites More sharing options...
corbin Posted December 17, 2006 Share Posted December 17, 2006 Or if you mean how do you password protect a folder, google '.htaccess' Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.