PHP Classes

webring 1.0: webring provides an easy-to-configure solution

Recommend this page to a friend!
  Info   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 976 This week: 1All time: 3,719 This week: 560Up
Version License Categories
webring 1.0GNU General Publi...HTML
Description 

Author

ABOUT

webring provides an easy-to-configure solution for creating a webring. All URLs are stored in one file (webring.urls), and each link in the webring references
one of three functions: next (next.php), previous (prev.php), or random (rand.php) at this site.

REQUIREMENTS

webring requires PHP>3 (tested on 3.015) with support for $HTTP_REFERER, and depends upon the loopedArray class (included). webring links will only
work on browsers that allow redirects using the http-equiv meta tag.

ARCHITECTURE

webring uses the loopedArray object, which simulates a "looped" array data type with a number of basic functions. See "loopedArray.api" for an outline of how
to use this class. See "webring.api" for an outline of the webring class.

CONFIGURATION

Simply add urls, one per line, to the file webring.urls. Then reference next.php, prev.php, and rand.php from the pages in your webring.

Picture of Robert Peake
Name: Robert Peake <contact>
Classes: 2 packages by
Country: United States United States
Age: 45
All time rank: 1810255 in United States United States
Week rank: 411 Up48 in United States United States Up

Details

webring - a scalable webring library Copyright 2000 Robert Peake Released under the GNU Lesser Public License ABOUT webring provides an easy-to-configure solution for creating a webring. All URLs are stored in one file (webring.urls), and each link in the webring references one of three functions: next (next.php), previous (prev.php), or random (rand.php) at this site. REQUIREMENTS webring requires PHP>3 (tested on 3.015) with support for $HTTP_REFERER, and depends upon the loopedArray class (included). webring links will only work on browsers that allow redirects using the http-equiv meta tag. ARCHITECTURE webring uses the loopedArray object, which simulates a "looped" array data type with a number of basic functions. See "loopedArray.api" for an outline of how to use this class. See "webring.api" for an outline of the webring class. CONFIGURATION Simply add urls, one per line, to the file webring.urls. Then reference next.php, prev.php, and rand.php from the pages in your webring. IMPORTANT SIDE EFFECTS Note that if next.php or prev.php are referenced from URLs outside the web ring (not in the webring.urls file) the following behavior will occur: prev.php will redirect the last URL in webrings.url, or the root directory if webrings.url is empty next.php will redirect to the second URL in webrings.url, or the first URL in webrings.url if webrings.url only contains one URL, or the root directory if webrings.url is empty. CURRENT CODE DESIGNED TO SUPPORT TOP-LEVEL URLS. SEE webring.inc FOR EXPLANATION OF (QUICK AND EASY) MODIFICATION TO ALLOW FOR FULL-URL MATCHES IN YOUR WEBRING. ADDENDUM This software is released as-is, with no implications of warranty or fiteness to a particular use. The author implies no obligation to provide techincal support for this software on the part of himself or his company. Robert@MSIA.org

  Files folder image Files  
File Role Description
Accessible without login HTML file index.html Doc. HTML README for webring 1.0
Accessible without login Plain text file loopedArray.api Doc. API for loopedArray class
Plain text file loopedArray.inc Class loopedArray class
Accessible without login Plain text file next.php Example returns next URL in the webring
Accessible without login Plain text file prev.php Example returns the previous URL in the webring
Accessible without login Plain text file rand.php Example returns a random URL in the webring
Accessible without login Plain text file README Doc. README for webring 1.0
Accessible without login Plain text file webring.api Doc. API for webring 1.0
Plain text file webring.inc Class webring class
Accessible without login Plain text file webring.urls Data configuration file for webring 1.0

 Version Control Unique User Downloads Download Rankings  
 0%
Total:976
This week:1
All time:3,719
This week:560Up