WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Forex Trading Online forex trading platform

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : How to protect an entire directory with PHP3
Categories : Authentication Update Picture
Vincent Stoessel
Date : Jun 30th 1998
Grade : 1 of 5 (graded 1 times)
Viewed : 6494
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Vincent Stoessel
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

Credit goes to Rasmus:

Force everything in the directory to be of type
application/x-httpd-php3 and then prepend an authentication script
automatically. In your Apache .conf file, use something like:

<Directory /path>
ForceType application/x-httpd-php3
php3_auto_prepend_file /some_path/auth.inc
</Directory>

One caveat: There must be an index file in the directory.
It can be an empty file.



Using $PHP_AUTH_USER and $PHP_AUTH_PW to authenticate.
Categories : Authentication, PHP
Basic Authentication with sessions
Categories : PHP, Beginner Guides, Authentication, Form Processing, Sessions
Simple Password example
Categories : PHP, Authentication, Security, HTTP
PHP Function to Encrypt/Decrypt a string without a known key. The string itself has his own different key for every character.
Categories : PHP, Algorithms, Security, Authentication, Encryption
Complete, simple working example of login screen and check on a unique page using php functions, cookies and mysql database.
Categories : PHP, Cookies, MySQL, HTML and PHP, Authentication
Function to remember password
Categories : PHP, Authentication, Personalization and Membership
PHP4 MYSQL Authentication Script with cookie. Short & Sweet
Categories : Authentication, Apache, Cookies, PHP, MySQL
Authorize Me! An authentication script.
Categories : MySQL, Databases, Authentication, PHP
Import the yahoo address book.
Categories : PHP, CURL, Authentication
Authentication script to authenticate users in Active Directory through LDAP.
Categories : LDAP, Authentication, Cookies, PHP
MD5 secured login
Categories : PHP, Java Script, Authentication, Security
PostgreSQL and apache web authentication source.
Categories : Authentication, PostgreSQL, Apache, Web Servers
Simple and fast user authentication
Categories : PHP, PHP Classes, Authentication
gpg encryption. 99% of it will apply to PGP.
Categories : Credit Cards, Authentication, Ecommerce, Misc
How to check that the encrypted password in the database is what the user enters? Used to verify mod_auth_mysql encrypted passwords.
Categories : MySQL, Databases, Authentication