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? Link to comment https://forums.phpfreaks.com/topic/30940-writing-passwords-to-a-directory/ 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]. Link to comment https://forums.phpfreaks.com/topic/30940-writing-passwords-to-a-directory/#findComment-142746 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' Link to comment https://forums.phpfreaks.com/topic/30940-writing-passwords-to-a-directory/#findComment-142761 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.