|
Main (PHP)
3rd Party Streams
Resources
Code Snippets
Affiliates
|
|
|
| |
|
| By Akash Goel ( 2006-03-24
7141 views.
)
|
Learn how to super protect your files without the use of mySQL.
This tutorial will help you learn how to password protect your file quickly and easily in a few lines of code.
The code can be split up into three if-else statements. Let's take a look at what we will have to do in order to set up the password protection:
- If the user has not been authenticated, then use the PHP header and ask for a username and password.
- Else, if the user's name is "spoono" and the password is "spoono", log in. Inside here you would put all the code for the user.
- Else tell them the user/password failed.
Some notes about this script: it is essential to note that this username and password will last the whole session, that means that as long as that explorer window is open, the name and password will be saved for that realm. So if you mistyped the name or the password, you'll have to close the explorer window and re-open it and try again. Not too tough was it? Well thats it folks. I hope it works out for you and if it doesn't, email for help at webmaster@spoono.com and we'll try to help you out. |
| |
|
| |
|
| By admin ( 2005-09-11
7173 views.
)
|
| There are more extensive ways to do an IP address format check, but this is a good cursory check. Simply call it passing an IP address as a string and it will return true if it's valid, false if it isn't. |
| |
|
| |
|
| By admin ( 2005-05-12
7165 views.
)
|
| PHP provides a number of array merging functions but not one that does precisely this. What this will do is that it will add new values found in the new array if they don't exist and update them if they do, performing this recursively if a sub-element of the new array is itself an array. |
| |
|
| |
|
| By admin ( 2005-04-21
7169 views.
)
|
| A small function that does similar to what the PHP substr function does, but on words instead. |
| |
|
| |
|
| By admin ( 2005-02-03
7421 views.
)
|
| Scans the environment variables and tries to use the one that's most likely to give a reliable result. |
| |
|
| |
|
|
| Item(s) 11 to 15 of 57.  Go to page: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 |
| |
|
|
|
Top Sponsor
Sponsors
Sponsors
Advertisting
Affiliates
|
|