|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Simple usersystem (no mysql)
I was wondering if some1 know about a script that i store username's and password's in a textfile and just put a code in my files i want to password protect (i have to add users my self)
~banan2
__________________
|
|
#2
|
|||
|
|||
|
If the server is apache, see http://httpd.apache.org/docs/howto/auth.html Otherwise, it is not wise to store username and password in a text file that anyone could download (If you use htpasswd it's safer because apache will not allow access to the password file).
|
|
#3
|
|||
|
|||
|
Here ya go
To generate a password, put this into a file generate_pass.php and replace blah with your password and run it in a browser. PHP Code:
now just put this as the very first line of a files you want protected: PHP Code:
|
|
#4
|
|||
|
|||
|
Never mind guys, i got MySQL and i almost fixed a usersystem that i want...
![]() |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > Simple usersystem (no mysql) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|