12 September 2006

12.9.2006

Custom error page / report
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.
URL / domain name splitter
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.
Coding fun solutions to crummy problems using XSLT collections
Application developer and TechRepublic contributor Edmond Woychowsky reveals his unique solution for an assignment that started with having to parse SQL insert statements which where stored in a table used for logging inserts. The assignment was to create an on-line report for non-technical individuals that explicitly stated the changes made to the database. Dropping raw SQL in the middle of the report was not an option. His creative solution involves XML and XSLT collections.

No comments: