Part of Jaimie Sirovich's adventure in PHP, Copywriting
Archived; click post to view.
Excerpt: One of the things that irks me most about programmers getting involved with marketing is that most of them just don't know grammar. SEO Black Hat mentioned "Google are," I mentioned "then vs. than," and now I'll mention one more thing -- "a vs. an." ...
Part of Jaimie Sirovich's adventure in PHP
Archived; click post to view.
Excerpt: This function, comprised of a simple regular expression, will remove most of the bloat from larger CSS files. Not that the effects are very substatial or groundbreaking, but it does save quite a few kilobytes to run things like this over your CSS and HTML. Using mod_gzip also has a favor ...
Part of Jaimie Sirovich's adventure in PHP, Usability
Archived; click post to view.
Excerpt: Microsoft applications have this nasty habit of exchanging both your single and double quotes with "smarter" versions. They curve inwards and look really snazzy in Microsoft Word. When you cut and paste them, they're unencoded, as Windows assumes that everyone is using wind ...
Part of Jaimie Sirovich's adventure in SEO, PHP, Cloaking
Archived; click post to view.
Excerpt: Someone commented on my last post that there is a way to achieve some of what I stated as a goal in the previous post without cloaking. He said:"Only create the session IDs in the URL when either one already exists, or when the user does something to prompt it (and make sure robots don ...
Part of Jaimie Sirovich's adventure in SEO, PHP
Archived; click post to view.
Excerpt: I wrote this script so that I can run it over arbitrary HTML. Basically, what it does is it adds rel="nofollow" to links that are not in an array of whitelisted domains. It sounds simple, but it gracefully handles many conditions that most people do not bother with. 1) As mentioned ...
Part of Jaimie Sirovich's adventure in PHP
Archived; click post to view.
Excerpt: I've always used '{' and '}' to access characters in a PHP string. I knew I could, but I never really used '[' and ']' to do the same, out of habit more than anything else. Apparently, not only is it allowed, but it's recommended by the PHP documen ...
Part of Jaimie Sirovich's adventure in SEO, PHP, Cloaking
Archived; click post to view.
Excerpt: Since Google has decided that cloaking, in fact, is not against the rules (not really, make sure you click that link), I have decided to post my simple cloaking toolkit written in PHP. I cannot support this thing, so please don't bombard me with emails. If you're very p ...
Part of Jaimie Sirovich's adventure in SEO, PHP
Archived; click post to view.
Excerpt: This neat little class can return the HTTP status code of a URL. It uses cURL to do so. Simply take the result of "parseResponseCode" and see if it's a 200. Depending on your requirements, 302 or 301 may also be a satisfactory answer, or you may want to update t ...