Some snippets and small programms, that may be of use for someone or may not :)...
If your address is on the internet, you can be sure that automatic spiders will get them and you will be pressed
on a DVD with 999'999'999 other poor addresses. Sooner or later you will get unsolicited advertising
mails (spam) in incredible masses. This class tries to hide the address in 2 ways.
This bit of code - written in PHP - fetches the skaters and goalies' statistics from
USA-Today and exports them as Excel file. These statistics are needed in fantasy leagues and the like.
The PHP-UWA library allows a facilated use of
UWA-Widgets with PHP. It gives you access to the preferences and some convenience-functions. In theory, it should work with every UWA-compliant widget (even the broken ones which use html in the JS-Parts or the body). Mini-Apis do
sometimes work too.
An example is included.
With this piece of php code, you can test
XPath expressions on your XML files. It's written in PHP and uses the DOM extension. It can handle queries for elements, attributes and evaluations like count().
See the
demosite.
This widget is a heavy Web-2.0ized piece of code: It uses the API of
tel.search.ch and
map.search.ch. It allows to search for an address and shows the list, details and a map inline in this widget. There is code to translate the ui and a PHP-proxy that translates the XML-Answers from ISO 8859-1 to UTF-8. Oh how I love the encodings.
You can add this widget easily to the following services: