How can I execute PHP code on my existing myfile.html page?

When a web page is accessed, the server checks the extension to know how to handle the page. Generally speaking if it sees a .htm or .html file, it sends it right to the browser because it doesn’t have anything to process on the server. If it sees a .php extension (or .shtml, or .asp, etc), it knows that it needs to execute the appropriate code before passing it along to the browser.

Continue reading “How can I execute PHP code on my existing myfile.html page?”

Highlight PHP and JavaScript Code with PHP

PHP has a cool function that automatically highlights PHP code called highlight_string();Theoretically this could be used to roll your own code highlighting on a site, rather than rely on JavaScript or some kind of external service to do it. In this article I’ll show you the basics of how it works, then extended it with a few tricks. Since JavaScript is so similar to PHP in syntax, we can trick the function into highlighting JavaScript code as well. Then finally how we can bust out some smarts to auto-tab the code.

Continue reading “Highlight PHP and JavaScript Code with PHP”

Remove SmartScreen technology from Hotmail & Windows Live Mail.

We would like Microsoft to remove its SmartScreen spam filtering technology from its Hotmail/Windows Live Mail email services and implement a usable alternative.

Continue reading “Remove SmartScreen technology from Hotmail & Windows Live Mail.”