 |
 |
|
|
 |
Calculate Distance and Radius in PHP - Added 05/01/07
Rate | Report | E-mail | Bookmark
| Add to List | Details | Comments (0)
 
This function calculates the distance between two locations by using latitude and longitude from ZIP code, postal code or postcode. The result is available in miles, kilometers or nautical miles based on great circle distance calculation.
License: | Version: | Platform:
Rating: (0/5) | Votes: 0 | Hits Out: 48 | Hits In: 0
Very Basic PHP/MySQL/Cookie Authentication System - Added 05/01/07
Rate | Report | E-mail | Bookmark
| Add to List | Details | Comments (0)
 
This was wrote as a basic model for authentication users for perhaps an admin section on a website. Its not Fort Knox but provides a basic and fairly secure method authentication. I just needed a little auth system to patch onto a few admin sections so maybe someone else can find this useful aswell. Feel free to modify the code and let me know if you have any comments. This may aswell help anyone whos learning Cookies/Authentication in PHP. The SQL Dump is in the sql folder and contains 2 tables. Once you have the DB details set in config.inc.php you can include the following in top of your pages to check for authentication :
Warning: include_once(inc/au th.inc.php) [function.include-once]: failed to open stream: No such file or directory in /home/telascri/public_html/commonfuncs.php(758) : eval()'d code on line 761
Warning: include_once() [function.include]: Failed opening 'inc/au th.inc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/telascri/public_html/commonfuncs.php(758) : eval()'d code on line 761
Fatal error: Call to undefined function _check_auth() in /home/telascri/public_html/commonfuncs.php(758) : eval()'d code on line 761
|
|