Obscure CreateRemoteThread Problem

August 30th, 2007

Yesterday I spent several hours trying to finally figure out why my wsTaskborg application failed to work when run run in a second session on the same PC. That is, when you first log on – using whichever account you have – it works fine. If you then use “fast user switching” and log on [...]

Continue Reading...

Free RAR Extractor List

August 26th, 2007

Got a RAR file and do not know how to open it? This article about free RAR extractors will help you find the best .rar extractor for your operating system.

Continue Reading...

PHP Multithreading – Faking It

August 20th, 2007

PHP doesn’t really support multi-threading per se but there are ways to do “fake” multithreading. Here’s one I saw in the PHPClasses.org newsletter – Multi-thread Simulation. Note that this class is intedend for use on a webserver, as opposed to running PHP scripts from a command line (or similar). Check the end of this post [...]

Continue Reading...

How To Force File Download With PHP

August 12th, 2007

Say you want a PHP script that will make the browser to download a file instead of opening it. This is useful for common filetypes that would normally be displayed in a browser, like .html, images, PDFs and .doc files. You can find a lot of scripts that do this on the web but one [...]

Continue Reading...

Broken Link Checker for WordPress

August 5th, 2007

Sometimes, links get broken. A page is deleted, a subdirectory forgotten, a site moved to a different domain. Most likely many of your blog posts contain links. It is almost inevitable that over time some of them will lead to a “404 Not Found” error page. Obviously you don’t want your readers to be annoyed [...]

Continue Reading...

WordPress Killed My Code

August 2nd, 2007

…but that’s okay – WP-Syntax resurrected it. After looking at one of my earlier posts I noticed that all the backslashes were gone from my code examples, most notably my regular expressions. I had the code wrapped in <pre></pre> tags. As some searching revealed, this seems to be a recurrent bug in WordPress 2.2.1 (I [...]

Continue Reading...

How To Check If Page Exists With CURL

August 2nd, 2007

Here’s a relatively simple PHP function that will check if an URL really leads to a valid page (as opposed to generating “404 Not Found” or some other kind of error). It uses the CURL library – if your server doesn’t have it installed, see “Alternatives” at the end of this post. This script may [...]

Continue Reading...