<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="/rss_style.xsl" type="text/xsl"?><rss version="2.0">
  <channel>
	<title>Free PHP scripts, classes and snippets</title>
	<link>http://www.finalwebsites.com/snippets.php</link>
	<description>Find on this PHP resource site code snippets, functions and classes. The scripts can be used in PHP and MySQL powered web applications and web sites. This is a list with the last release information for PHP classes and snippets.</description>
	<copyright>2004 - 2008 finalwebsites.com</copyright>
	<image>
	  <title>Dutch PHP resource</title>
	  <link>http://www.finalwebsites.com/snippets.php</link>
	  <url>http://www.finalwebsites.com/images/finalwebsitesdotcom.jpg</url>
	</image>
	<managingEditor>contact@finalwebsites.com (Olaf)</managingEditor>
	<webMaster>contact@finalwebsites.com (Olaf)</webMaster>
	<lastBuildDate>Wed, 30 Apr 2008 12:00:00 GMT</lastBuildDate>
		<item>
	  <title>RSS parser using cache</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=49</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=49</guid>
	  <description></description>
	  <pubDate>Wed, 30 Apr 2008 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>Access_user Class</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=10</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=10</guid>
	  <description>Access_user Class is an easy to use system for protecting pages and register users. They main features are: User-login, user registration, user update, remember login information, page protection, forgotten password recovery, mail based account activation and multi language message reporting and since the latest versions: maintain extra user profile information, access levels, a limited (safe) admin panel, manual account activation and an improved password check. The class is powered by MySQL and PHP sessions. Inside the package are examples for all primary methods. Since version 1.92 custom session handler are supported.</description>
	  <pubDate>Thu, 17 Jan 2008 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>MyPagina (pagination) class</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=29</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=29</guid>
	  <description>The page navigation (pagination) of lists with records from a (MySQL) database is often used on a lot of dynamic websites. This class is extremely easy to use in your existing application: just use your own SQL statement and voila you get information like the result set (you need this for later output, page navigation links and the (current) number of records. While using this class all other query string parts are included inside the page links. An example database table (with data) is included. The version 1.02 makes it possible to use images (back and forward naviagtion links).</description>
	  <pubDate>Tue, 01 Jan 2008 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>Dynamic radio group (HTML)</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=48</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=48</guid>
	  <description>Creating radio elements in some content management systems can result into writing a lot of code. Just in case your radio group with multiple options is getting a value from a database and/or a form. There need to be a check for every posted value for every option. This function will do all this work for you, just create two arrays, one for the values and labels and for the related html code. It's up to the user if he uses 2 or more elements in one group. The function works with $_POST and $_GET data.</description>
	  <pubDate>Tue, 26 Jun 2007 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>Attachment Mailer class</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=41</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=41</guid>
	  <description>I wrote this class to integrate more functionality for classes like Access_user or DB_cart and other's using the PHP mail function. But the class can be also used in every web application where the standard text mail is not enough and where attachments are needed. The class has no upload function, use for some file upload functionality the Easy Upload Class. Find in the current class functions like: an e-mail address check (using regular expressions and testing the address against a MX record), All header rows are filtered to prevent spamming via web mail forms, the class can handle multiple attachment. Since version 1.2 is html mail with inline attachments supported.</description>
	  <pubDate>Mon, 13 Nov 2006 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>PHP Whois script</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=13</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=13</guid>
	  <description>With this PHP class is it possible to check the whois information for domain names.
If the result for a query is negative that a standard message is given. 
Special features: String validation for the name part, dynamic select menu for the defined tld's, domain check or full domain query, multiple domain check. New! .eu and .us type domain names are supported now.</description>
	  <pubDate>Mon, 11 Sep 2006 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>Custom error page / report</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=45</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=45</guid>
	  <description>This custom error page shows some standard error information and reports the error to the webmaster by e-mail. The script works for dead links and will report expired hot links from other sites (the IP address). Just add bad URL's and IP addresses into a text file to get the errors only once.</description>
	  <pubDate>Mon, 11 Sep 2006 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>URL / domain name splitter</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=46</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=46</guid>
	  <description>There is no standard PHP function to extract the tld from an URL, parsing an URL with parse_url() will return the hostname and other URL information. If you need only the tld, for example to query the whois data of a given domain name, the following script should be usefull. To run this script you need a database with all tld's. Check the support link to the right and join the forum to get the database dump.</description>
	  <pubDate>Mon, 11 Sep 2006 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>Nested Select menu using &quot;optgroup&quot;</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=44</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=44</guid>
	  <description>This example is about the optgroup element, with this &quot;label&quot; it is possible to create really user friendly select menu's. Think about a menu with several product groups and related categories, with the optgroup element it's possible to group the values like in a nested repeated list. The function creates a complete xhtml valid select menu with all option groups (product groups) and options (categories). Within the onchange event the form form will be submitted by default (leave the $form_name argument empty to disable this feature.</description>
	  <pubDate>Sat, 12 Aug 2006 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>Directories filenames to database</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=43</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=43</guid>
	  <description>This script is an example how to import all filenames of a single directory into a database table. Extra features are: the last modification date is saved in the database too; all filenames that are not imported to the database are stored in an error array. The script is very easy to use: just place the script into the folder where you want to copy the files and modify the database connection string and then run the script via the browser. The script is working on windows/linux, PHP 4 and MySQL 3.23 (or higher)</description>
	  <pubDate>Fri, 28 Jul 2006 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>Counter &amp; visitor statistics</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=8</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=8</guid>
	  <description>This version is a replacement of the old count_visitor class. There are lot of good systems like this class but most of them are really complex and difficult to modify. You have to use this kind of systems like provided. This class is not an alternative if you look for the same amount functions, but it's a light weight solution to integrate into your website. Inside the latest versions (&gt; 2.02) there is a new top list with the number of visits grouped by the domain name from the HTTP referer information and a monthly detail page for visitors grouped by country and/or referer.</description>
	  <pubDate>Thu, 06 Jul 2006 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>Easy PHP Upload</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=7</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=7</guid>
	  <description>This PHP upload class (the old name) can be used to upload files with a client browser to a remote web server location. The features in the first release are: file-extension check, maximum file- size limitation and a flexible error reporting system. The class is extremely easy to use and comes together with full working examples. Since the second version is it possible to upload multiple files. Check the class file for all update information. The version 2.22 (and higher) is compatible with the PHP directive &quot;register_globals=off&quot;. NEW functions for the multiple upload function: rename files and filename validation. With the updated (version 2.25) photo upload extension it's possible to upload photos (logos) and resize them to the maximum X and Y size. Since version 2.26 the is support for the  ImageMagick command line tools as an option (works faster then functions of the GD library). Note the database example since the last version.</description>
	  <pubDate>Sun, 18 Jun 2006 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>DB_cart Class (shopping cart)</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=32</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=32</guid>
	  <description>DB_cart Class is a MySQL shopping cart script that can be used with third party product catalogues and membership systems. The MySQL database structure is neutral to existing systems. It can handle the shopping cart (add, update, and empty) and checkout process (set the shipment address and email the order). For existing cart users, the shopping cart is still available upon the user's next visit and is visible by checkout. The last option is configurable togther with a given time period. The package includes all application file and example data to test all functions. Since version 1.10 its possible to use this class with product data where the stock value is variable.</description>
	  <pubDate>Wed, 14 Jun 2006 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>Validate_fields Class</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=15</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=15</guid>
	  <description>I created this class to get an easy to use form field validation script. Use this class to validate your database inputs or mail forms. Of course there is much more to validate: postcodes, special strings, credit card number etc. In this version is it possible to validate simple text, numbers (with decimals, too), dates, urls, e-mail addresses and for html-tags. Invalid form fields will be reported inside a detailed error message. If all form fields are valid you can use the boolean to submit your form. A new function in version 1.34 is the  validation of checkboxes and radio groups.</description>
	  <pubDate>Thu, 08 Jun 2006 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>Cross-Browser Session Starter</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=42</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=42</guid>
	  <description>If a session based web application is used by a visitor using Internet Explorer it's possible that this user get some trouble. This will happen if parts of the application are accessed for example via a shortcut on the desktop and the application opens then in a new Explorer window. At this moment a second session is started with a different ID, if the used web application has some session based authentication system the user has to login again. At the same time the user has to logout twice! In browsers like Mozilla Firefox new windows are treated the same way then tabs where the problem doesn't exists. This function will use a real cookie for the session ID and updates the expiration time with every script execution. The expiration is equal to the PHP directive &quot;gc_maxlifetime&quot; (default) or every custom value.</description>
	  <pubDate>Thu, 08 Jun 2006 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>Rebuild query string</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=6</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=6</guid>
	  <description>I modified some code created by Macromedia Dreamweaver into a flexible function to rebuild the query string. The function is very useful for pagination or passing variables from one page to another.In this version it's possible to add more than one variable names into the functions arguments. This names will be filtered from the new generated query string. Just add the variable names you don't need into a comma seperated string.</description>
	  <pubDate>Wed, 10 May 2006 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>Check empty fields</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=24</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=24</guid>
	  <description>Almost for every submitted form you need a simple form check about the required fields. The validation and reporting will become very hard to handle if you have more then three required fields. This function will do all this work: Validation of required fields and the error reporting. After submitting you get a message which fields are empty and the empty fields are in a different colour. The new improved version (1.01) can handle also checkbox type elements (and all other html elements)</description>
	  <pubDate>Sun, 19 Feb 2006 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>Dynamic select menu</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=20</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=20</guid>
	  <description>In a lot of dynamic forms or content management sytems the form element &quot;SELECT&quot; is used frequently. If you use your PHP code inside the standard HTML element the code will be nearly unreadable. Adding extra options is not really fun. This small handy function will produce a select based on an associative array. Just define an array and call the function, that's all. Now XHTML valid!</description>
	  <pubDate>Sun, 12 Feb 2006 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>(Back) link checker</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=40</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=40</guid>
	  <description>This function is usefull for peoples with a link directory where the links are stored inside a (MySQL) database. The PHP script is easy to use to find out if a reciprocal link still exists on the corresponding webpage. It takes care about the trailing slash in urls and can be used with (almost) every url. Inside the function is a check against a regular expression pattern and the result is a simple boolean.</description>
	  <pubDate>Sat, 31 Dec 2005 12:00:00 GMT</pubDate>
	</item>
		<item>
	  <title>Prevent multi submit</title>
	  <link>http://www.finalwebsites.com/snippets.php?id=19</link>
	  <guid>http://www.finalwebsites.com/releases.php?id=19</guid>
	  <description>Are you tired of people submitting the same information via your online forms multiple times and cluttering up your database and mail? If yes, this PHP snippet could be your solution. With this function (and native PHP session support) it's possible to prevent a multiple form submission while using server side form field validation. The script checks the unique string from the current submission against the post before and will stop if the submitted string is the same as before. The version 1.01 is compatible with the &quot;Random validation image&quot; script.</description>
	  <pubDate>Sat, 10 Dec 2005 12:00:00 GMT</pubDate>
	</item>
	  </channel>
</rss>
