Posts Tagged ‘post’
Monday, June 30th, 2008
Client/Server Request/Response
HTTP is a simple client/server protocol with stateless request/response sequences.
The Client HTTP Request
7 possible HTTP 1.1 request types: GET, PUT, POST, DELETE, HEAD, OPTIONS and TRACE.
Any number of HTTP headers can accompany a request.
GET /filename.php HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Charset: iso-8859-1,*,utf-8
Accept-Encoding: gzip
Accept-Language: en
Connection: Keep-Alive
Host: localhost
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.5-pre4 i686; Nav)
The Server HTTP Response
HTTP/1.1 200 OK
Date: Mon, 21 May 2001 17:01:51 GMT
Server: Apache/1.3.20-dev (Unix) PHP/4.0.7-dev
Last-Modified: Fri, 26 Jan 2001 06:08:38 GMT
ETag: “503d3-50-3a711466″
Accept-Ranges: bytes
Content-Length: 80
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html
Tags: Client, Connection, Delete, get, HEAD, HTTP, Image, Linux, localhost, Options, PHP, post, PUT, REQUEST, response, server, Text, Trace
Posted in PHP | No Comments »
Monday, June 30th, 2008
if ( phpversion() < “4.1.0″) {
$_GET = &$HTTP_GET_VARS;
$_POST = &$HTTP_POST_VARS;
$_SERVER = &$HTTP_SERVER_VARS;
}
Tags: Access, get, older, PHP, phpversion, post, server, versions
Posted in PHP | No Comments »
Saturday, June 28th, 2008
Try to pre-increment, rather than post-increment, where possible. It is faster because post-increment creates a temporary variable while in the process of incrementing. So, this:
++$var;
…is faster than this:
$var++;
This rule also applies to decrementation as well. To test this assertion, I created two for loops. The first for loop used the post-increment option, while the second for loop used pre-increment instead. The total number of iterations was 10,000,000. Here are the results:
Post-increment: 2.148 seconds
Pre-increment: 1.692 seconds
Time saved: 0.456 seconds; 21.23%
Tags: creates, faster, increment, incrementing, post, process, seconds, temporary, Time saved
Posted in PHP | No Comments »
Thursday, June 26th, 2008
Your PAGE title should include your keywords in order to be optimized for search engines. Your POST title should be catchy and written for your visitors. How do you accomplish this in Wordpress?
Get the SEO Title Tag Wordpress plugin. It allows you to have separate titles for your posts and your pages.
Advanced Tip: You’ll also want to check your post template (single.php) and make sure your post titles are using H2 tags and are linking to your Permalink URL.
This will give your post titles more prominence in the search engines. An example code:
<h2 class=’post-title’><a href=”<?php echo get_permalink() ?>” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?></a></h2>
Tags: engines, permalink, post, prominence, template, WordPress
Posted in SEO | No Comments »
Thursday, June 19th, 2008
If you want to get listed for secondary keywords use them infrequently in the body of your post and pepper your blog titles or links with them appropriately.
Don’t overdo this or your posts will end up sounding unnatural and spammy to readers.
Tags: appropriately, body, infrequently, keywords, overdo, post, posts, readers, secondary, sounding, spammy, Use
Posted in Uncategorized | No Comments »
Thursday, June 19th, 2008
When you’re writing for your audience, your content focus, post timing and areas of interest will all become associated with your personal style. If you vary widely from that style, you risk alienating folks who’ve come to know you and rely on you for specific data. Thus, if you build a blog around the idea of being an analytical expert in your field, don’t ignore the latest release of industry figures only to chat about an emotional issue - deliver what your readers expect of you and crunch the numbers. This applies equally well to post frequency - if your blog regularly churns out 2 posts a day, having two weeks with only 4 posts is going to have an adverse impact on traffic. That’s not to say you can’t take a vacation, but you need to schedule it wisely and be prepared to lose RSS subscribers and regulars. It’s not fair, but it’s the truth. We lose visitors every time I attend an SES conference and drop to one post every two days (note - guest bloggers and time-release posts can help here, too).
-
Tags: analytical, associated, audience, churns, content, Create, Expectations, figures, Fulfill, ignore, Impact, interest, personal, post, readers, RSS, SES conference, timing
Posted in Uncategorized | No Comments »
Thursday, June 19th, 2008
Not every post is worthy of making it to the top of Digg, Del.icio.us/popular or even a mention at some other blogs in your space. Trying to over-market every post you write will result in pushback and ultimately lead to negative opinions about your efforts. The less popular your blog is, the harder it will be to build excitement around a post, but the process of linkbait has always been trial and error - build, test, refine and re-build. Keep creating great ideas and bolstering them with lots of solid, everyday content and you’ll eventually be big enough to where one out of every 20-40 posts really does become linkbait.
Tags: content, Digg, efforts, enough, Error, eventually, everyday, less, Linkbait, making, mention, negative, only, post, pushback, re-build, Space, trial, Trying, twenty, ultimately, worthy
Posted in Uncategorized | No Comments »
Thursday, June 19th, 2008
There’s something sad about a blog with 0 comments on every post. It feels dead, empty and unpopular. Luckily, there’s an easy solution - don’t offer the ability to post comments on the blog and no one will know that you only get 20 uniques a day. Once you’re upwards of 100 RSS subscribers and/or 750 unique visitors per day, you can open up the comments and see light activity. Comments are often how tech-savvy new visitors judge the popularity of a site (and thus, its worth), so play to your strengths and keep your obscurity private.
Tags: blog, comments, empty, feels, launch, obscurity, popularity, post, RSS, solution, strengths, uniques, unpopular, visitors, Without
Posted in Uncategorized | No Comments »
Thursday, June 19th, 2008
Technorati is the first place that you should be tagging posts. I actually recommend having the tags right on your page, pointing to the Technorati searches that you’re targeting. There are other good places to ping - del.icio.us and Flickr being the two most obvious (the only other one is Blogmarks, which is much smaller). Tagging content can also be valuable to help give you a “bump” towards getting traffic from big sites like Reddit, Digg & StumbleUpon (which requires that you download the toolbar, but trust me - it’s worth it). You DO NOT want to submit every post to these sites, but that one out of twenty (see tactic #18) is worth your while.
Tags: actually, Blogmarks, bump, content, DO, good, most, places, pointing, post, posts, recommend, Reddit, Right, sites, Tag, tagging, these, towards, traffic, twenty, Want, your
Posted in Uncategorized | No Comments »