Category Archives: Web Development

Proposal for HTML 5?

As a developer, there are certain things I find a bit frustrating about HTML and PHP programming, and this is one of them.
I’m regularly called upon to build shops, or very simple CMS systems with image upload facilities. This is fine, no complaints about that, but when you’re creating a CMS with image uploads, you [...]

Posted in Web Development | Tagged , | Leave a comment

A proposal for robots.txt – RSS feeds

Ok, so I know that you can link to RSS feeds via your HTML using
<link href=”" rel=”alternate” type=”application/rss+xml” title=”" />
but since we’re already using starting to use robots.txt files to reference our sitemaps like so:
Sitemap: <sitemap_location>
why not use it to reference our RSS feeds as well? It would be trivial do something like this in [...]

Also posted in Search Engine Optimisation | Tagged , | Leave a comment

HTML Emails in Outlook

This is kind of a ‘note to self’…
When specifying pixel dimensions in html attributes e.g. width=”200px” in an html email, drop the units – width=”200″ since for some reason Outlook 2007 doesn’t support the units.
Nice rendering engine MS…

Also posted in Emails | Tagged , | Leave a comment

Database development – Some Rules

If I’d known this stuff when I first started to design databases for web applications, I think it would have helped me a lot, these are not necessarily ‘formal recommendations’ or even what some people might call ‘best practice’, but these rules work for me when I’m designing my web applications. It makes development quicker, [...]

Also posted in Databases | Tagged , , | Leave a comment

Find the Full Path To A Virtual Host Directory

This is a quick one, but hopefully some people will find it useful!
This simple script normally returns the full Linux path to your files, e.g.
/var/www/vhosts/leadingedgescripts.co.uk/httpdocs/
Simply create a PHP file with the following contents:
<?php
echo getcwd();
?>
Copy it to your PHP enabled server (using FTP/SFTP etc) and visit it in your web browser.
This tidbit of information can be [...]

Also posted in Server Administration | Tagged , | Leave a comment