public marks

PUBLIC MARKS from imelgrat

17 July 2007

Convert a Webpage to Plain Text

This function takes a URL and returns a plain-text version of the page. It uses cURL to retrieve the page and a combination of regular expressions to strip all unwanted whitespace. This function will even strip the text from STYLE and SCRIPT tags, which are ignored by PHP functions such as strip_tags (they strip only the tags, leaving the text in the middle intact).

Site Popularity Google Gadget

Add this Google Gadget to your iGoogle Page or your Google Desktop, enter an URL and within seconds, get your site’s Google PageRank and Alexa Ranking, and the number of backlinks to your site, as reported by Google, Yahoo!, Altavista and AllTheWeb.

Barcode Generator Google Gadget

This Google Gadget is part of the several projects MT-Soft has worked on related to barcodes. It allows its users to select the barcode encoding (128-A, 128-B, 128-C, 2of5 (Indust.), 2of5 (Int.), 2of5 (Std.), CODABAR, Code39 (3of9), Code93, EAN-8, EAN-13, ISBN, POSTNET, UPC-A, UPC-E), customize the resulting barcode (background and bar colors), as well as bar height and thickness and finally, the image type you want to create (PNG is the preferred one but you can also choose GIF or JPEG). You can then use the resulting image to add barcodes to whatever you want (DVD collection, “old-things” boxes, etc.).

Using Regular Expressions to Find RSS Links on a Page

the class performs three main steps. First, the cURL library is used to fetch the content pointed to by the URL the user passed.. Second, since PHP doesn’t have an SGML parser built in like Python seems to, so getting all the "link" tags has to be done manually. A few regular expressions and some simple string splitting made it all real easy. Last but not least, the function goes through all the links found, figures out which ones belong to RSS feeds, resolves them to absolutes URL if necessary, and stores them on an array, making sure the link isn’t already listed to prevent duplicate links (e.g., the RSS appears more than once in the page).

OPML Parser PHP Class (Free PHP Class)

This PHP class parses an OPML file (provided its URL) and returns an array with all the parsed data. This array contains, for each of the OPML file’s elements the following attributes: link_url, link_name, link_target, link_description, link_rss, created (date of creation), type (link type: RSS, HTML, etc.). The class uses file_get_contents() to retrieve the contents of the OPML file and then the XML extension is used to parse and store the file’s data in an associative array, where each outline element is stored using a different array index.

07 July 2007

MT-Soft - Professional Website Development - Free Code Samples and PHP Classes

MT-Soft is a unique design firm offering a variety of services from basic Website Design to complete e-commerce website development. We have created and launched dozens of successful websites since our inception, for many different types of businesses.

30 March 2007

New RSS/ATOM to PDF Conversion tools

I was looking at this site's RSS tools and I thought it was worth pointing out that there's a new site (http://www.rss2.co.uk) that offers not only mashing several RSS2 feeds onto a single PDF document but also offer free tools that allow websites to provide the same service at no cost.

imelgrat's TAGS

search:

limit:50 100 200

backup   backup and restore   barcode software   barcoding software   blog   bloggers   broadband providers   broadband solutions   calendar   cellphone   collaborative editing   community   conversion   convert   convert pdf   convert to pdf   converter text   Create pdf   credit card companies   Credit Card Deals   credit cards   css   curl   database   database backup   debt relief   design   desktop icon   document management   Educational Materials   electronic payment   excel   export   extensions   favicon generator   fax server   firefox   free   free code   Free Tool   free tools   fun quizz   function   gadget   google   Google gadget   gsm   hardware   high speed internet access   home satellite   htc   html   icon creator   image   internet   internet marketing   irc clients   isbn barcode   javascript   javascript code   javascript examples   javascript programming   kirchner   mysql   opml   outline   pabx   pagerank   pdf   php   php class   PHP Classes   php function   php rss   Php Script   portfolio   providers   rss   rss feed   rss feeds   rss tool   Sample Code   search engine   seo services   seo-related   social network   stock market traders   stock market trading   tag   teen chat rooms   text   tool   typography   web   web design   web services   website   work experience   xml   xul