PHP Classes

Packages of Jeffrey Silverman

Recommend this page to a friend!
  All class groups  >  All authors  >  Packages of Jeffrey Silverman (2)  >  Mission progress status  >  Reputation  
Picture of Jeffrey Silverman
Name: Jeffrey Silverman <contact>
Classes: 2
Country: United States United States
Age: ???
All time rank: 1022146 in United States United States
Week rank: 195 Up19 in United States United States Up
All time users: 3143
Week users: 0
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image IP Address Subnet Sniffer  
Determine if an IP address belongs to a subnetwork
This class can be used to determine wether a given IP address belongs to a given list of subnetworks.

The class takes an array of subnetwork masks to be checked in the form of strings with decimal numbers seperated dots .

Then the class can check whether a given IP address belongs to any of the specified subnetworks by applying the respective masks.

This class was created to emulate the "Deny from x.x.x.x" directive for Apache (nd other servers -- for example, Samba uses a similar format for allowing/denying access to a range of IP addresses). I needed a way to deny/allow access to a range of IP addresses but, for technical reasons, I could not use a .htaccess file, and had to do the IP address processing within the PHP script itself.

For example, you can emulate the line "Deny from 192.168.0.0/24" by supplying the string "192.168.0.0/24" to the class. To see exactly how to do this, see the documentation within the class file itself.
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: 87% 81% - - - - 51% 2486
Month: Not yet rated by the users

  Files folder image Simple RSS Feed Creator  
Generate an RSS 2.0 feed
This class can be use to generate a feed in the RSS 2.0 format.

It takes a nested associative array that describes all the details of the feed channel like the title, description, URL, and the feed items.

Then it generates the whole feed XML at once.

The feed items may be added dynamically after passing the initial feed channel definition.
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: 83% 75% - - - - 49% 2886
Month: Not yet rated by the users


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z