<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MaggsWeb:7 &#187; Miscellaneous</title>
	<atom:link href="http://www.maggsweb.com/category/miscellaneous/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.maggsweb.com</link>
	<description>www.maggsweb.com</description>
	<lastBuildDate>Sat, 21 Aug 2010 20:50:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>MySQL query for a Tag Cloud</title>
		<link>http://www.maggsweb.com/miscellaneous/mysql-tag-cloud/</link>
		<comments>http://www.maggsweb.com/miscellaneous/mysql-tag-cloud/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 12:58:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[tag cloud]]></category>

		<guid isPermaLink="false">http://www.maggsweb.com/?p=836</guid>
		<description><![CDATA[OK, I found this in WordPress. I am not sure exactly how it works, but I haven&#8217;t seen this functionality before in MySQL. I am pretty sure that it is used for passing an array of variables to MySQL for use in a Tag Cloud. INSERT INTO table ( id, term, order ) VALUES &#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>OK, I found this in WordPress.  I am not sure exactly how it works, but I haven&#8217;t seen this functionality before in MySQL.  I am pretty sure that it is used for passing an array of variables to MySQL for use in a Tag Cloud.<br />
<span id="more-836"></span></p>
<p>INSERT INTO table (<br />
    id,<br />
    term,<br />
    order<br />
) VALUES &#8221; . join(&#8216;,&#8217;, $values) . &#8221; ON DUPLICATE KEY UPDATE order = VALUES(order);</p>
<p>Any help on this would be great.  I plan to use this very soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maggsweb.com/miscellaneous/mysql-tag-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTP Status Codes</title>
		<link>http://www.maggsweb.com/miscellaneous/http-status-codes/</link>
		<comments>http://www.maggsweb.com/miscellaneous/http-status-codes/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 11:15:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[http_status]]></category>

		<guid isPermaLink="false">http://www.maggsweb.com/uncategorized/http-statius-codes/</guid>
		<description><![CDATA[Everyone has seen an &#8216;Error 500&#8242;; but that is only one of many&#8230;. 100 => &#8216;Continue&#8217;, 101 => &#8216;Switching Protocols&#8217;, 102 => &#8216;Processing&#8217;, 200 => &#8216;OK&#8217;, 201 => &#8216;Created&#8217;, 202 => &#8216;Accepted&#8217;, 203 => &#8216;Non-Authoritative Information&#8217;, 204 => &#8216;No Content&#8217;, 205 => &#8216;Reset Content&#8217;, 206 => &#8216;Partial Content&#8217;, 207 => &#8216;Multi-Status&#8217;, 226 => &#8216;IM Used&#8217;, [...]]]></description>
			<content:encoded><![CDATA[<p>Everyone has seen an &#8216;Error 500&#8242;; but that is only one of many&#8230;.<br />
<span id="more-821"></span></p>
<p>			100 => &#8216;Continue&#8217;,<br />
			101 => &#8216;Switching Protocols&#8217;,<br />
			102 => &#8216;Processing&#8217;,</p>
<p>			200 => &#8216;OK&#8217;,<br />
			201 => &#8216;Created&#8217;,<br />
			202 => &#8216;Accepted&#8217;,<br />
			203 => &#8216;Non-Authoritative Information&#8217;,<br />
			204 => &#8216;No Content&#8217;,<br />
			205 => &#8216;Reset Content&#8217;,<br />
			206 => &#8216;Partial Content&#8217;,<br />
			207 => &#8216;Multi-Status&#8217;,<br />
			226 => &#8216;IM Used&#8217;,</p>
<p>			300 => &#8216;Multiple Choices&#8217;,<br />
			301 => &#8216;Moved Permanently&#8217;,<br />
			302 => &#8216;Found&#8217;,<br />
			303 => &#8216;See Other&#8217;,<br />
			304 => &#8216;Not Modified&#8217;,<br />
			305 => &#8216;Use Proxy&#8217;,<br />
			306 => &#8216;Reserved&#8217;,<br />
			307 => &#8216;Temporary Redirect&#8217;,</p>
<p>			400 => &#8216;Bad Request&#8217;,<br />
			401 => &#8216;Unauthorized&#8217;,<br />
			402 => &#8216;Payment Required&#8217;,<br />
			403 => &#8216;Forbidden&#8217;,<br />
			404 => &#8216;Not Found&#8217;,<br />
			405 => &#8216;Method Not Allowed&#8217;,<br />
			406 => &#8216;Not Acceptable&#8217;,<br />
			407 => &#8216;Proxy Authentication Required&#8217;,<br />
			408 => &#8216;Request Timeout&#8217;,<br />
			409 => &#8216;Conflict&#8217;,<br />
			410 => &#8216;Gone&#8217;,<br />
			411 => &#8216;Length Required&#8217;,<br />
			412 => &#8216;Precondition Failed&#8217;,<br />
			413 => &#8216;Request Entity Too Large&#8217;,<br />
			414 => &#8216;Request-URI Too Long&#8217;,<br />
			415 => &#8216;Unsupported Media Type&#8217;,<br />
			416 => &#8216;Requested Range Not Satisfiable&#8217;,<br />
			417 => &#8216;Expectation Failed&#8217;,<br />
			422 => &#8216;Unprocessable Entity&#8217;,<br />
			423 => &#8216;Locked&#8217;,<br />
			424 => &#8216;Failed Dependency&#8217;,<br />
			426 => &#8216;Upgrade Required&#8217;,</p>
<p>			500 => &#8216;Internal Server Error&#8217;,<br />
			501 => &#8216;Not Implemented&#8217;,<br />
			502 => &#8216;Bad Gateway&#8217;,<br />
			503 => &#8216;Service Unavailable&#8217;,<br />
			504 => &#8216;Gateway Timeout&#8217;,<br />
			505 => &#8216;HTTP Version Not Supported&#8217;,<br />
			506 => &#8216;Variant Also Negotiates&#8217;,<br />
			507 => &#8216;Insufficient Storage&#8217;,<br />
			510 => &#8216;Not Extended&#8217;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maggsweb.com/miscellaneous/http-status-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTP Error codes</title>
		<link>http://www.maggsweb.com/miscellaneous/http-error-codes/</link>
		<comments>http://www.maggsweb.com/miscellaneous/http-error-codes/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 11:44:32 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[error code]]></category>
		<category><![CDATA[http]]></category>

		<guid isPermaLink="false">http://www.maggsweb.com/?p=653</guid>
		<description><![CDATA[HTTP Error Codes - a quick reference.]]></description>
			<content:encoded><![CDATA[<p>HTTP Error Codes &#8211; a quick reference.</p>
<p><span id="more-653"></span></p>
<h2>Web Server Status Codes/Messages</h2>
<h3>The Status-Code element is a 3-digit integer result code of the attempt to understand and satisfy the request. These codes are defined below. The Status Message is intended to give a short textual description of the Status-Code.</h3>
<ul>
<li>1xx: Informational &#8211; Request received, continuing process</li>
<li>2xx: Success &#8211; The action was successfully received, understood, and accepted</li>
<li>3xx: Redirection &#8211; Further action must be taken in order to complete the request</li>
<li>4xx: Client Error &#8211; The request contains bad syntax or cannot be fulfilled</li>
<li>5xx: Server Error &#8211; The server failed to fulfill an apparently valid request</li>
</ul>
<h3>Informational 1xx</h3>
<p>This class of status code indicates a provisional response, consisting only of the Status-Line and optional headers, and is terminated by an empty line. Since HTTP/1.0 did not define any 1xx status codes, servers MUST NOT send a 1xx response to an HTTP/1.0 client except under experimental conditions.</p>
<h3>100 Continue</h3>
<p>The client may continue with its request. This interim response is used to inform the client that the initial part of the request has been received and has not yet been rejected by the server. The client SHOULD continue by sending the remainder of the request or, if the request has already been completed, ignore this response. The server MUST send a final response after the request has been completed.</p>
<h3>101 Switching Protocols</h3>
<p>The server understands and is willing to comply with the client&#8217;s request, via the Upgrade message header field (section 14.41), for a change in the application protocol being used on this connection. The server will switch protocols to those defined by the response&#8217;s Upgrade header field immediately after the empty line, which terminates the 101 response.</p>
<p>The protocol should only be switched when it is advantageous to do so. For example, switching to a newer version of HTTP is advantageous over older versions, and switching to a real-time, synchronous protocol may be advantageous when delivering resources that use such features.</p>
<h2>Successful 2xx</h2>
<p>All response codes that start with 2xx indicates that the request was successfully received, understood, and accepted.</p>
<h3>200 OK</h3>
<p>The request has succeeded.</p>
<h3>201 Created</h3>
<p>The request has been fulfilled and resulted in a new resource being created. The newly created resource can be referenced by the URI(s) returned in the entity of the response, with the most specific URL for the resource given by a Location header field. The origin server MUST create the resource before returning the 201 status code. If the action cannot be carried out immediately, the server should respond with 202 (Accepted) response instead.</p>
<h3>202 Accepted</h3>
<p>The request has been accepted for processing, but the processing has not been completed. The request MAY or MAY NOT eventually be acted upon, as it MAY be disallowed when processing actually takes place. There is no facility for re-sending a status code from an asynchronous operation such as this.</p>
<p>The 202 response is intentionally non-committal. Its purpose is to allow a server to accept a request for some other process (perhaps a batch-oriented process that is only run once per day) without requiring that the user agent&#8217;s connection to the server persist until the process is completed. The entity returned with this response SHOULD include an indication of the request&#8217;s current status and either a pointer to a status monitor or some estimate of when the user can expect the request to be fulfilled.</p>
<h3>203 Non-Authoritative Information</h3>
<p>The returned metainformation in the entity-header is not the definitive set as available from the origin server, but is gathered from a local or a third-party copy. The set presented MAY be a subset or superset of the original version. For example, including local annotation information about the resource MAY result in a superset of the metainformation known by the origin server. Use of this response code is not required and is only appropriate when the response would otherwise be 200 (OK).</p>
<h3>204 No Content</h3>
<p>The server has fulfilled the request but there is no new information to send back. If the client is a user agent, it SHOULD NOT change its document view from that which caused the request to be sent. This response is primarily intended to allow input for actions to take place without causing a change to the user agent&#8217;s active document view. The response MAY include new metainformation in the form of entity-headers, which SHOULD apply to the document currently in the user agent&#8217;s active view.</p>
<h3>205 Reset Content</h3>
<p>The server has fulfilled the request and the user agent SHOULD reset the document view which caused the request to be sent. This response is primarily intended to allow input for actions to take place via user input, followed by a clearing of the form in which the input is given so that the user can easily initiate another input action. The response MUST NOT include an entity.</p>
<h3>206 Partial Content</h3>
<p>The server has fulfilled the partial GET request for the resource. The request must have included a Range header field (section 14.36) indicating the desired range. The response MUST include either a Content-Range header field (section 14.17) indicating the range included with this response, or a multipart/byteranges Content-Type including Content-Range fields for each part. If multipart/byteranges is not used, the Content-Length header field in the response MUST match the actual number of OCTETs transmitted in the message-body.</p>
<p>A cache that does not support the Range and Content-Range headers MUST NOT cache 206 (Partial) responses.</p>
<h2>Redirection 3xx</h2>
<p>This class of status code indicates that further action needs to be taken by the user agent in order to fulfill the request. The action required MAY be carried out by the user agent without interaction with the user if and only if the method used in the second request is GET or HEAD. A user agent SHOULD NOT automatically redirect a request more than 5 times, since such redirections usually indicate an infinite loop.</p>
<h3>300 Multiple Choices</h3>
<p>The requested resource corresponds to any one of a set of representations, each with its own specific location, and agent- driven negotiation information (section 12) is being provided so that the user (or user agent) can select a preferred representation and redirect its request to that location.</p>
<p>Unless it was a HEAD request, the response SHOULD include an entity containing a list of resource characteristics and location(s) from which the user or user agent can choose the one most appropriate. The entity format is specified by the media type given in the Content-Type header field. Depending upon the format and the capabilities of the user agent, selection of the most appropriate choice may be performed automatically. However, this specification does not define any standard for such automatic selection.</p>
<p>If the server has a preferred choice of representation, it SHOULD include the specific URL for that representation in the Location field; user agents MAY use the Location field value for automatic redirection. This response is cachable unless indicated otherwise.</p>
<h3>301 Moved Permanently</h3>
<p>The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD be done using one of the returned URIs. Clients with link editing capabilities SHOULD automatically re-link references to the Request-URI to one or more of the new references returned by the server, where possible. This response is cachable unless indicated otherwise.</p>
<p>If the new URI is a location, its URL SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).</p>
<p>If the 301 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.</p>
<p>Note: When automatically redirecting a POST request after receiving a 301 status code, some existing HTTP/1.0 user agents will erroneously change it into a GET request.</p>
<h3>302 Moved Temporarily</h3>
<p>The requested resource resides temporarily under a different URI. Since the redirection may be altered on occasion, the client SHOULD continue to use the Request-URI for future requests. This response is only cachable if indicated by a Cache-Control or Expires header field.</p>
<p>If the new URI is a location, its URL SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).</p>
<p>If the 302 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.
<p>Note: When automatically redirecting a POST request after receiving a 302 status code, some existing HTTP/1.0 user agents will erroneously change it into a GET request.</p>
<h3>303 See Other</h3>
<p>The response to the request can be found under a different URI and SHOULD be retrieved using a GET method on that resource. This method exists primarily to allow the output of a POST-activated script to redirect the user agent to a selected resource. The new URI is not a substitute reference for the originally requested resource. The 303 response is not cachable, but the response to the second (redirected) request MAY be cachable.</p>
<p>If the new URI is a location, its URL SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).</p>
<h3>304 Not Modified</h3>
<p>If the client has performed a conditional GET request and access is allowed, but the document has not been modified, the server SHOULD respond with this status code. The response MUST NOT contain a message-body.</p>
<p>The response MUST include the following header fields:</p>
<ul>
<li>Date</li>
<li>ETag and/or Content-Location, if the header would have been sent in a 200 response to the same request</li>
<li>Expires, Cache-Control, and/or Vary, if the field-value might differ from that sent in any previous response for the same variant</li>
</ul>
<p><p>If the conditional GET used a strong cache validator, the response SHOULD NOT include other entity-headers.</p>
<p>Otherwise (i.e., the conditional GET used a weak validator), the response MUST NOT include other entity-headers; this prevents inconsistencies between cached entity-bodies and updated headers.</p>
<p>If a 304 response indicates an entity not currently cached, then the cache MUST disregard the response and repeat the request without the conditional.</p>
<p>If a cache uses a received 304 response to update a cache entry, the cache MUST update the entry to reflect any new field values given in the response.</p>
<p>The 304 response MUST NOT include a message-body, and thus is always terminated by the first empty line after the header fields.</p>
<h3>305 Use Proxy</h3>
<p>The requested resource MUST be accessed through the proxy given by the Location field. The Location field gives the URL of the proxy. The recipient is expected to repeat the request via the proxy.</p>
<h2>Client Error 4xx</h2>
<p>The 4xx class of status code is intended for cases in which the client seems to have erred. Except when responding to a HEAD request, the server SHOULD include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. These status codes are applicable to any request method.</p>
<p>User agents SHOULD display any included entity to the user.</p>
<p>Note: If the client is sending data, a server implementation using TCP should be careful to ensure that the client acknowledges receipt of the packet(s) containing the response, before the server closes the input connection. If the client continues sending data to the server after the close, the server&#8217;s TCP stack will send a reset packet to the client, which may erase the client&#8217;s unacknowledged input buffers before they can be read and interpreted by the HTTP application.</p>
<h3>400 Bad Request</h3>
<p>The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.</p>
<h3>401 Unauthorized</h3>
<p>The request requires user authentication. The response MUST include a WWW-Authenticate header field containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field. If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user SHOULD be presented the entity that was given in the response, since that entity MAY include relevant diagnostic information.</p>
<h3>402 Payment Required</h3>
<p>This code is reserved for future use.</p>
<h3>403 Forbidden</h3>
<p>The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.</p>
<h3>404 Not Found</h3>
<p>The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.</p>
<p>If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.</p>
<h3>405 Method Not Allowed</h3>
<p>The method specified in the Request-Line is not allowed for the resource identified by the Request-URI. The response MUST include an Allow header containing a list of valid methods for the requested resource.</p>
<h3>406 Not Acceptable</h3>
<p>The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request.</p>
<p>Unless it was a HEAD request, the response SHOULD include an entity containing a list of available entity characteristics and location(s) from which the user or user agent can choose the one most appropriate. The entity format is specified by the media type given in the Content-Type header field. Depending upon the format and the capabilities of the user agent, selection of the most appropriate choice may be performed automatically. However, this specification does not define any standard for such automatic selection.</p>
<p>Note: HTTP/1.1 servers are allowed to return responses which are not acceptable according to the accept headers sent in the request. In some cases, this may even be preferable to sending a 406 response. User agents are encouraged to inspect the headers of an incoming response to determine if it is acceptable. If the response could be unacceptable, a user agent SHOULD temporarily stop receipt of more data and query the user for a decision on further actions.</p>
<h3>407 Proxy Authentication Required</h3>
<p>This code is similar to 401 (Unauthorized), but indicates that the client MUST first authenticate itself with the proxy. The proxy MUST return a Proxy-Authenticate header field containing a challenge applicable to the proxy for the requested resource. The client MAY repeat the request with a suitable Proxy-Authorization header field.</p>
<h3>408 Request Timeout</h3>
<p>The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time.</p>
<h3>409 Conflict</h3>
<p>The request could not be completed due to a conflict with the current state of the resource. This code is only allowed in situations where it is expected that the user might be able to resolve the conflict and resubmit the request. The response body SHOULD include enough information for the user to recognize the source of the conflict. Ideally, the response entity would include enough information for the user or user agent to fix the problem; however, that may not be possible and is not required.</p>
<p>Conflicts are most likely to occur in response to a PUT request. If versioning is being used and the entity being PUT includes changes to a resource which conflict with those made by an earlier (third-party) request, the server MAY use the 409 response to indicate that it can&#8217;t complete the request. In this case, the response entity SHOULD contain a list of the differences between the two versions in a format defined by the response Content-Type.</p>
<h3>410 Gone</h3>
<p>The requested resource is no longer available at the server and no forwarding address is known. This condition SHOULD be considered permanent. Clients with link editing capabilities SHOULD delete references to the Request-URI after user approval. If the server does not know, or has no facility to determine, whether or not the condition is permanent, the status code 404 (Not Found) SHOULD be used instead. This response is cachable unless indicated otherwise.</p>
<p>The 410 response is primarily intended to assist the task of web maintenance by notifying the recipient that the resource is intentionally unavailable and that the server owners desire that remote links to that resource be removed. Such an event is common for limited-time, promotional services and for resources belonging to individuals no longer working at the server&#8217;s site. It is not necessary to mark all permanently unavailable resources as &#8220;gone&#8221; or to keep the mark for any length of time &#8212; that is left to the discretion of the server owner.</p>
<h3>411 Length Required</h3>
<p>The server refuses to accept the request without a defined Content- Length. The client MAY repeat the request if it adds a valid Content-Length header field containing the length of the message-body in the request message.</p>
<h3>412 Precondition Failed</h3>
<p>The precondition given in one or more of the request-header fields evaluated to false when it was tested on the server. This response code allows the client to place preconditions on the current resource metainformation (header field data) and thus prevent the requested method from being applied to a resource other than the one intended.</p>
<h3>413 Request Entity Too Large</h3>
<p>The server is refusing to process a request because the request entity is larger than the server is willing or able to process. The server may close the connection to prevent the client from continuing the request.</p>
<p>If the condition is temporary, the server SHOULD include a Retry-After header field to indicate that it is temporary and after what time the client may try again.</p>
<h3>414 Request-URI Too Long</h3>
<p>The server is refusing to service the request because the Request-URI is longer than the server is willing to interpret. This rare condition is only likely to occur when a client has improperly converted a POST request to a GET request with long query information, when the client has descended into a URL &#8220;black hole&#8221; of redirection (e.g., a redirected URL prefix that points to a suffix of itself), or when the server is under attack by a client attempting to exploit security holes present in some servers using fixed-length buffers for reading or manipulating the Request-URI.</p>
<h3>415 Unsupported Media Type</h3>
<p>The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method.</p>
<h2>Server Error 5xx</h2>
<p>Response status codes beginning with the digit &#8220;5&#8243; indicate cases in which the server is aware that it has erred or is incapable of performing the request. Except when responding to a HEAD request, the server SHOULD include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. User agents SHOULD display any included entity to the user. These response codes are applicable to any request method.</p>
<h3>500 Internal Server Error</h3>
<p>The server encountered an unexpected condition, which prevented it from fulfilling the request.</p>
<h3>501 Not Implemented</h3>
<p>The server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.</p>
<h3>502 Bad Gateway</h3>
<p>The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.</p>
<h3>503 Service Unavailable</h3>
<p>The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay may be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.</p>
<p>Note: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Some servers may wish to simply refuse the connection.</p>
<h3>504 Gateway Timeout</h3>
<p>The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server it accessed in attempting to complete the request.</p>
<h3>505 HTTP Version Not Supported</h3>
<p>The server does not support, or refuses to support, the HTTP protocol version that was used in the request message. The server is indicating that it is unable or unwilling to complete the request using the same major version as the client other than with this error message. The response SHOULD contain an entity describing why that version is not supported and what other protocols are supported by that server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maggsweb.com/miscellaneous/http-error-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTP Meta tags</title>
		<link>http://www.maggsweb.com/miscellaneous/http-meta-tags/</link>
		<comments>http://www.maggsweb.com/miscellaneous/http-meta-tags/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 11:42:10 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[meta tag]]></category>

		<guid isPermaLink="false">http://www.maggsweb.com/?p=650</guid>
		<description><![CDATA[HTTP Meta tags - examples and descriptions of their use - any my opionion on their importance.]]></description>
			<content:encoded><![CDATA[<p>HTTP Meta tags &#8211; examples and descriptions of their use &#8211; any my opionion on their importance.</p>
<p><span id="more-650"></span></p>
<h4>I do not necessarily agree with or use all of these, but use this as a reference with some guidelines.<br />
Don&#8217;t include them &#8216;just for the sake of it&#8217;, but if they are relevant &#8211; add them.</h4>
<hr />
<h2>HIGHLY IMPORTANT ONES</h2>
<h3>Title</h3>
<p>The Title Tag should contain no more than 70 characters (although 100 characters may be indexed depending on the engine).</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code1'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6501"><td class="code" id="p650code1"><pre class="html" style="font-family:monospace;">&lt;title&gt;TitleTitleTitle&lt;/title&gt;</pre></td></tr></table></div>

<h3>Description</h3>
<p>OK, its not exactly a <strong>META Tag</strong>, but the Description Tag can have up to 150 characters (although, 200 &#8211; 250 characters may be indexed and only a smaller portion of this amount be displayed). Also used in the browser top bar, tabs, and in the taskbar.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code2'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6502"><td class="code" id="p650code2"><pre class="html" style="font-family:monospace;">&lt;meta NAME=&quot;Description&quot; CONTENT=&quot;DescriptionDescription&quot;&gt;</pre></td></tr></table></div>

<h3>Keywords</h3>
<p>In the Keyword tag use specific descriptive &#8216;words&#8217; or &#8216;phrases&#8217; to match the content on your site. You can use up to 200 characters with each word (or phrase) separated with a comma(,).</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code3'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6503"><td class="code" id="p650code3"><pre class="html" style="font-family:monospace;">&lt;meta NAME=&quot;Keywords&quot; CONTENT=&quot;KeywordsKeywords&quot;&gt;</pre></td></tr></table></div>

<hr />
<h2>MEDIUM IMPORTANCE &#8211; USE IF REQUIRED</h2>
<h3>Robots</h3>
<p>The values ALL and NONE set all directives on or off: [ALL=INDEX,FOLLOW] and [NONE=NOINDEX,NOFOLLOW].</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code4'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6504"><td class="code" id="p650code4"><pre class="html" style="font-family:monospace;">&lt;meta NAME=&quot;Robots&quot; CONTENT=&quot;INDEX,FOLLOW&quot;&gt;</pre></td></tr></table></div>

<h3>MS Tags</h3>
<p>Do you want Microsoft products to automatically generate smart tags on your web pages. No? Then add this!</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code5'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6505"><td class="code" id="p650code5"><pre class="html" style="font-family:monospace;">&lt;meta NAME=&quot;MSSmartTagsPreventParsing&quot; CONTENT=&quot;TRUE&quot;&gt;</pre></td></tr></table></div>

<h3>IE6 Image Toolbar</h3>
<p>I found this one to prevent the image options toolbar popping up in IE6 over the images.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code6'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6506"><td class="code" id="p650code6"><pre class="html" style="font-family:monospace;">&lt;meta http-equiv=&quot;imagetoolbar&quot; CONTENT=&quot;no&quot;&gt;</pre></td></tr></table></div>

<h3>Expires</h3>
<p>Use &#8220;never&#8221; unless your site will expire. (Eg. Tue, 18 Apr 2006 14:57:09 GMT | Note: Requires RFC1123 date format.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code7'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6507"><td class="code" id="p650code7"><pre class="html" style="font-family:monospace;">&lt;meta HTTP-EQUIV=&quot;Expires&quot; CONTENT=&quot;ExpiresExpires&quot;&gt;</pre></td></tr></table></div>

<h3>Cache Control</h3>
<p>Cache control level.	None / Public / Private / no-Cache / no-Store</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code8'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6508"><td class="code" id="p650code8"><pre class="html" style="font-family:monospace;">&lt;meta HTTP-EQUIV=&quot;CACHE-CONTROL&quot; CONTENT=&quot;PUBLIC&quot;&gt;</pre></td></tr></table></div>

<h3>No Cache</h3>
<p>This directive indicates cached information should not be used and instead requests should be forwarded to the origin server.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code9'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6509"><td class="code" id="p650code9"><pre class="html" style="font-family:monospace;">&lt;meta HTTP-EQUIV=&quot;PRAGMA&quot; CONTENT=&quot;NO-CACHE&quot;&gt;</pre></td></tr></table></div>

<h3>Copyright</h3>
<p>Who is the Owner of the site? or the Company Name</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code10'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p65010"><td class="code" id="p650code10"><pre class="html" style="font-family:monospace;">&lt;meta NAME=&quot;Copyright&quot; CONTENT=&quot;CopyrightCopyright&quot;&gt;</pre></td></tr></table></div>

<h3>Designer</h3>
<p>The webmasters name</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code11'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p65011"><td class="code" id="p650code11"><pre class="html" style="font-family:monospace;">&lt;meta NAME=&quot;Designer&quot; CONTENT=&quot;DesignerDesigner&quot;&gt;</pre></td></tr></table></div>

<h3>Revisit-After</h3>
<p>Tell the search engines how often this page updates. (Eg. 21 days | Note: Most search engines do not support this Meta Tag)</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code12'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p65012"><td class="code" id="p650code12"><pre class="html" style="font-family:monospace;">&lt;meta NAME=&quot;Revisit-After&quot; CONTENT=&quot;Revisit-AfterRevisit-After&quot;&gt;</pre></td></tr></table></div>

<hr />
<h2>LOW IMPORTANCE</h2>
<h3>Publisher</h3>
<p>Owner, Webmaster, Company Name, etc..</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code13'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p65013"><td class="code" id="p650code13"><pre class="html" style="font-family:monospace;">&lt;meta NAME=&quot;Publisher&quot; CONTENT=&quot;PublisherPublisher&quot;&gt;</pre></td></tr></table></div>

<h3>Author</h3>
<p>The Author Tag is for the person who wrote the material for the site. Usually the client.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code14'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p65014"><td class="code" id="p650code14"><pre class="html" style="font-family:monospace;">&lt;meta NAME=&quot;author&quot; CONTENT=&quot;AuthorAuthor&quot;&gt;</pre></td></tr></table></div>

<h3>Subject</h3>
<p>The Subject Tag is for what your site is about. Business, music, hobby, cars. You can use up to 100 characters.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code15'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p65015"><td class="code" id="p650code15"><pre class="html" style="font-family:monospace;">&lt;meta NAME=&quot;subject&quot; CONTENT=&quot;SubjectSubject&quot;&gt;</pre></td></tr></table></div>

<h3>Classification</h3>
<p>The Classification tag is similar to description but more in detail.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code16'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p65016"><td class="code" id="p650code16"><pre class="html" style="font-family:monospace;">&lt;meta NAME=&quot;Classification&quot; CONTENT=&quot;ClassificationClassification&quot;&gt;</pre></td></tr></table></div>

<h3>Geography</h3>
<p>Where are you located? Insert your full address?</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code17'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p65017"><td class="code" id="p650code17"><pre class="html" style="font-family:monospace;">&lt;meta NAME=&quot;Geography&quot; CONTENT=&quot;GeographyGeography&quot;&gt;</pre></td></tr></table></div>

<h3>Language</h3>
<p>Is your site in English, Spanish, French&#8230;..?</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code18'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p65018"><td class="code" id="p650code18"><pre class="html" style="font-family:monospace;">&lt;meta NAME=&quot;Language&quot; CONTENT=&quot;LanguageLanguage&quot;&gt;</pre></td></tr></table></div>

<h3>City</h3>
<p>Your City</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code19'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p65019"><td class="code" id="p650code19"><pre class="html" style="font-family:monospace;">&lt;meta NAME=&quot;city&quot; CONTENT=&quot;CityCity&quot;;&gt;</pre></td></tr></table></div>

<h3>Country</h3>
<p>Your Country</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code20'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p65020"><td class="code" id="p650code20"><pre class="html" style="font-family:monospace;">&lt;meta NAME=&quot;country&quot; CONTENT=&quot;CountryCountry&quot;&gt;</pre></td></tr></table></div>

<h3>Distribution</h3>
<p>Use [Global] unless it is a [Local] only site.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code21'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p65021"><td class="code" id="p650code21"><pre class="html" style="font-family:monospace;">&lt;meta NAME=&quot;distribution&quot; CONTENT=&quot;Global&quot;&gt;</pre></td></tr></table></div>

<hr />
<h2>SPECIAL USE</h2>
<h3>Redirect / Refresh</h3>
<p>Used to redirect browsers to another page, or refresh the current page.<br />
&#8217;0&#8242; is the number of milliseconds, so use &#8217;3000&#8242; for a 3 second redirect.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?" onclick="pageTracker._trackPageview('/outgoing/www.ericbess.com/ericblog/2008/03/03/wp-codebox/_examples?referer=');"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p650code22'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p65022"><td class="code" id="p650code22"><pre class="html" style="font-family:monospace;">&lt;http-EQUIV=&quot;refresh&quot; content=&quot;0; url=homepage.htm&quot; &gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.maggsweb.com/miscellaneous/http-meta-tags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML to XHTML</title>
		<link>http://www.maggsweb.com/miscellaneous/html-to-xhtml/</link>
		<comments>http://www.maggsweb.com/miscellaneous/html-to-xhtml/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 11:35:42 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.maggsweb.com/?p=645</guid>
		<description><![CDATA[Here's a quick check list of the important requirements of XHTML and the differences between it and HTML.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick check list of the important requirements of XHTML and the differences between HTML and XHTML.<br />
<span id="more-645"></span><br />
This is NOT a comprehensive XHTML language reference.</p>
<h2>All tags, attributes and values must be written in lowercase.</h2>
<p>Right: &lt;a href=&#8221;www.kilroyjames.co.uk&#8221; &gt;<br />
Wrong:  &lt;A HREF=&#8221;www.kilroyjames.co.uk&#8221; &gt;</p>
<h2>All attribute values must be within quotes</h2>
<p>Right: &lt;a href=&#8221;www.kilroyjames.co.uk&#8221; &gt;<br />
Wrong: &lt;a href=www.kilroyjames.co.uk &gt;</p>
<h2>All tags must be properly nested</h2>
<p>Right: &lt;em&gt;this emphasis just keeps getting &lt;strong&gt;stronger and stronger&lt;/strong&gt;&lt;/em&gt;<br />
Wrong: &lt;em&gt;this emphasis just keeps getting &lt;strong&gt;stronger and stronger&lt;/em&gt;&lt;/strong&gt;</p>
<h2>All XHTML documents must carry a DOCTYPE definition</h2>
<p>The DOCTYPE is an intimidating looking piece of code that must appear at the start of every XHTML document, it tells the browser how to render the document.</p>
<h3>Rules for the DOCTYPE tag:</h3>
<p>* It must be the first tag in the document<br />
* The DOCTYPE is not actually part of the XHTML document so don&#8217;t add a closing slash<br />
* It should point to a valid definition file called a DTD that tells the browser how to read the document<br />
* You must write the DOCTYPE tag correctly otherwise your document will explode (into little pieces of HTML called &#8220;tag soup&#8221;) and be unvalidatable.</p>
<p>There are three types of valid XHTML 1.0 document: Strict, Transitional, and Frameset. If you can get your document to validate with &#8220;Strict&#8221; then do so, however some legacy tags and attributes aren&#8217;t allowed in Strict so you can use &#8220;Transitional&#8221; instead.</p>
<p>Note also that using a Transitional DTD takes most browsers out of &#8220;Standards&#8221; mode. It is much trickier to get your web pages to look consistent across different browsers when the browsers are not in Standards mode. I&#8217;m not going to explain the minutae of the DOCTYPE tag as it gets deeper and more complicated, just know that for best results you should use one of the following, preferably the first one (Strict):</p>
<p>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Strict//EN&#8221;<br />
&#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#8221;&gt;</p>
<p>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221;<br />
&#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;</p>
<h2>The HTML tag must contain an XMLNS attribute</h2>
<p>You don&#8217;t need to understand the &#8220;XML namespace&#8221; attribute, except to know that it is required in all XHTML documents. Here is an example of how to write it:</p>
<p>&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&gt;</p>
<h2>Documents must be properly formed with HTML, HEAD, TITLE and BODY tags</h2>
<p>In HTML it is possible to write a webpage that contains none of the above tags; in XHTML it is not. The above tags must be included and they must be nested and ordered correctly, as follows (the DOCTYPE has been omitted):</p>
<p>&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;&lt;/title&gt;<br />
&lt;/head&gt;</p>
<p>&lt;body&gt;<br />
&lt;p&gt;<br />
See how the TITLE must be placed in the document HEAD – the TITLE is considered<br />
to be a &#8220;required child&#8221; element of the HEAD.<br />
Notice that the HEAD must also appear before the document BODY.<br />
Notice also how both the HEAD and the BODY must be contained<br />
within the HTML tag. Again, HEAD and BODY are &#8220;required child&#8221;<br />
elements of the HTML tag. Finally, notice that this text is<br />
written within a &lt;p&gt;paragraph&lt;/p&gt; tag; in XHTML you may<br />
not write text directly in the BODY tag without using a suitable<br />
container tag, such as &lt;p&gt; or &lt;div&gt;.<br />
&lt;/p&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<h2>All tags must be closed, even single tags</h2>
<p>Wrong:</p>
<p>&lt;p&gt;Mary had a little lamb<br />
&lt;p&gt;It&#8217;s fleece was white as snow</p>
<p>Right:</p>
<p>&lt;p&gt;Mary had a little lamb&lt;/p&gt;<br />
&lt;p&gt;It&#8217;s fleece was white as snow&lt;/p&gt;</p>
<h2>In XHTML even single tags have to be closed &#8211; absolutely NO tag may be left open.</h2>
<p>Wrong:&lt;p&gt;Mary had a little lamb &lt;br&gt;It&#8217;s fleece was white as snow&lt;/p&gt;</p>
<p>Right: &lt;p&gt; Mary had a little lamb &lt;br/&gt; It&#8217;s fleece was white as snow&lt;/p&gt;</p>
<h2>Attribute minimisation isn&#8217;t allowed</h2>
<p>In HTML, attributes can be strung together almost like they were keywords, ie. &lt;dl compact&gt;, this is called attribute minimisation. In XHTML that is not allowed, attributes and values must be excplicit, ie.</p>
<p>&lt;dl compact=&#8221;compact&#8221;&gt;</p>
<h2>ID and NAME attributes</h2>
<p>In HTML it was legal to use ID and NAME attributes interchangeably. In XHTML the NAME attribute is formally deprecated and cannot be used. In all cases where you would think to use a NAME attribute you must now use ID instead. e.g.</p>
<p>Correct HTML: &lt;input type=&#8221;submit&#8221; name=&#8221;s&#8221; value=&#8221; Search &#8221; &gt;</p>
<p>Correct XHTML:&lt;input type=&#8221;submit&#8221; id=&#8221;s&#8221; value=&#8221; Search &#8221; /&gt;</p>
<h2>STYLE is all in your HEAD</h2>
<p>XHTML does not allow STYLE or SCRIPT declarations within the body of a document they must be placed in the document HEAD instead.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maggsweb.com/miscellaneous/html-to-xhtml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache server variables</title>
		<link>http://www.maggsweb.com/miscellaneous/apache-server-variables/</link>
		<comments>http://www.maggsweb.com/miscellaneous/apache-server-variables/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 11:32:57 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[request]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.maggsweb.com/?p=642</guid>
		<description><![CDATA[Server Variables are variables set by Apache, and held inside the super global array '$_SERVER'.   They hold very interesting snippits of data available for use, and become very useful when developing PHP projects.]]></description>
			<content:encoded><![CDATA[<h4>Server Variables are variables set by Apache, and held inside the super global array &#8216;$_SERVER&#8217;.   They hold very interesting snippits of data available for use, and become very useful when developing PHP projects.</h4>
<p><span id="more-642"></span></p>
<hr />
<h2>$_SERVER['REQUEST_URI']</h2>
<p>It return the URL in to access the page which is executing the script. If you need to type http://www.example.com/product.php?id=5 to access the page then $_SERVER['REQUEST_URI'] returns “/product.php?id=5.</p>
<h2>$_SERVER['DOCUMENT_ROOT']</h2>
<p>Returns the root directory of the server which is specified in the configuration file of server. This variable usually returns the path like “/usr/yoursite/www” in Linux and “D:/xamps/xampp/htdocs” in windows.</p>
<h2>$_SERVER['HTTP_HOST']</h2>
<p>Returns the host’s name as found in the http header. This variable usually returns the path like “example.com” when the you find “http://example.com” in browser’s address-bar and return “www.example.com” when you see http://www.example.com in the address-bar. This is quite useful when you’ve to preserve session while making online payment using PHP since session stored for “http://example.com” is not same as for the “http://www.example.com”.</p>
<h2>$_SERVER['HTTP_USER_AGENT']</h2>
<p>Returns the user agent’s (browser) detail accessing the web page. We can use strpos($_SERVER["HTTP_USER_AGENT"],”MSIE”) to detect Microsoft Internet explorer or you can use strpos($_SERVER["HTTP_USER_AGENT"],”Firefox”) to detect firefox browser in PHP.</p>
<h2>$_SERVER['PHP_SELF']</h2>
<p>Returns the file-name of the currently executing script. Let’s suppose that you’re accessing the URL http://www.example.com/product.php?id=5 then $_SERVER['PHP_SELF'] returns “/product.php” in your script.</p>
<h2>$_SERVER['QUERY_STRING']</h2>
<p>Returns the query string if query string is used to access the script currently executing. Query strings are those string which is available after “?” sign.if you use $_SERVER['QUERY_STRING'] in the script executing the following URL “http://www.example.com/index.php?id=5&amp;amp;page=product” then it returns “id=5&amp;amp;page=product” in your script.</p>
<h2>$_SERVER['REMOTE_ADDR']</h2>
<p>Returns the IP address of remote machine accessing the current page. But you can’t relie on $_SERVER['REMOTE_ADDR'] to get the real IP address of client’s machine.</p>
<h2>$_SERVER['SCRIPT_FILENAME']</h2>
<p>Returns the absolute path of the file which is currently executing. It returns path like “var/example.com/www/product.php” in Linux and path like “D:/xampp/xampp/htdocs/test/example.php” in windows.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maggsweb.com/miscellaneous/apache-server-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SEO Myths</title>
		<link>http://www.maggsweb.com/miscellaneous/seo-myths/</link>
		<comments>http://www.maggsweb.com/miscellaneous/seo-myths/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 11:17:15 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Search Engine Optimisation]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.maggsweb.com/?p=633</guid>
		<description><![CDATA[10 Myths about SEO (Search Engine Optimisation) that any webmaster should know; and all clients should be aware of.]]></description>
			<content:encoded><![CDATA[<p>10 Myths about SEO (Search Engine Optimisation) that any webmaster should know; and all clients should be aware of.</p>
<p><span id="more-633"></span></p>
<h2>Myth 1: All Meta Tags Are Of Equal Importance</h2>
<p>Some Meta tags are useful while others are not.  Search engines are relying more and more about what is on the website than what the tags are telling them. The description tag is used by some (but not all) search engines. The same goes for the keyword tag, which is hardly used by any search engines. I will not improve your ranking and it could actually cause you ranking to go down. In my opinion, the only tags you should use are the robot tag and the description tags.</p>
<h2>Myth 2: You must submit Your Site to Search Engines regularly</h2>
<p>Submit your site once, that&#8217;s enough. The engines will come back and re-visit of their own accord. You can sometimes speed up the process of getting your site indexed by linking it to a high traffic site. The search engines will find the URL to your site and index it automatically.</p>
<h2>Myth 3: SEO is Expensive</h2>
<p>Actually, SEO is probably the most cost effective form of online marketing. Organic SEO is cheaper to set up and maintain than a PPC campaign or banner advertising. With PPC and banner advertising, you pay for clicks or impressions. With SEO, all clicks are Free. You simply pay for the set up and monitoring of your site&#8217;s pages.</p>
<h2>Myth 4: PPC Is More Effective Than Natural SEO</h2>
<p>In the short term this is true. Pay Per Click (PPC) can bring good returns if done properly. In the long term it is not more effective because organic listings are preferred to PPC listings by a ratio of 5 to 1 to PPC. People trust organic searches to return relevant results. People also know that the ads to the right of the page are sponsored ads. They have long ago figured out that anyone can bid on any term they want, as many often do, without even a hint of relevance. So, long term SEO structuring can indeed be more effective than PPC, especially when considering the preferences of search traffic. A top 5 ranking may take some time to get, but once you are there (and provided you can maintain it), you will get better results than from a PPC ad.</p>
<h2>Myth 5: Employing an SEO specialist is cheaper</h2>
<p>The problem with employing someone is that they are paid hourly or by monthly salary. Most SEO firms charge per website or project. It doesn&#8217;t matter how long it takes us, you pay a one tíme charge. When you hire a firm, it&#8217;s like having a team of SEO experts on your payroll. Paying a flat rate saves you money and speeds up the time it takes to complete a job. Additionally, most SEO firms have specialists who write, submit, redesign sites, post pages, etc&#8230; Hiring one person who can do all these things competently is highly unlikely.</p>
<h2>Myth 6: I can only optimize my homepage for key terms</h2>
<p>You can and should optimize every page on your site. Each page should have its own key terms, with no more than three phrases per page, preferably only one key phrase per page.</p>
<h2>Myth 7: All I need to do is write content with the correct keyword density and my site will rank well</h2>
<p>Wrong&#8230;especially if you want to rank on Google. You will need off-site SEO as well as on-site SEO. Keyword density may work on MSN (for now), but it will take more than that to rank well for all search engines.</p>
<h2>Myth 8: I shouldn&#8217;t aim for the most competitive keywords and phrases</h2>
<p>If the keywords you are competing for are very competitive, should you optimize your site for them? Of Course! I would optimize for some high, medium and low competitive key terms. Cover all your bases. The worst case is that you won&#8217;t rank well for the high competitive key terms and that&#8217;s ok. You can always work to improve them. Don&#8217;t shy away from top key terms just because they are competitive. You may never know how close you could rank for them unless you try.</p>
<h2>Myth 9: Only use companies that give you a guarantee</h2>
<p>Guarantees would be nice if they were worth the paper they are printed on. In fact, most guarantees from SEO firms have the same stipulation in them. This stipulation usually states that as long as they get one of your key phrases to the top of any major search engines, they have fulfilled their end of the agreement. This is irrelevant to the competition of the term. In other words&#8230;it&#8217;s easy to be number one for terms no one is competing for. Don&#8217;t be deceived by high rankings listed on SEO sites as they can be misleading.</p>
<h2>Myth 10: Professional SEO requires a long expensive commitment </h2>
<p>It certainly shouldn&#8217;t. Don&#8217;t lock yourself into a year contract with any company unless you already have an established, favourable business relationship. SEO, in most cases, should be performed on a month to month basis with a mutual understanding of the objectives and relative timetable. Often, both the long and short term maintenance contracts that many firms insist on including with each job are unnecessary. As an example&#8230;If you have a new site optimized, especially right after an update, you may not see results for three months. Why pay for maintenance in the interim time?<br />
Additionally, you may not be happy with the results of an SEO firm or even the level of service. A long term contract may only ensure that you receive a full year of bad service. So, don&#8217;t lock yourself in with a year contract, at least until you are comfortable with whom you are dealing with.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maggsweb.com/miscellaneous/seo-myths/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cheat Sheets</title>
		<link>http://www.maggsweb.com/miscellaneous/cheat-sheets/</link>
		<comments>http://www.maggsweb.com/miscellaneous/cheat-sheets/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 07:57:59 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[visibone]]></category>

		<guid isPermaLink="false">http://tech.maggsweb.co.uk/?p=267</guid>
		<description><![CDATA[Some of these used to be on the wall (in my previous job) and I never looked closely enough where they came from. They are handy when you are continually switching from PHP/MySQL to ColdFusion/Oracle. I have just found them, quite by accident, so am posting them here so that I never lose them again&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>Some of these used to be on the wall (in my previous job) and I never looked closely enough where they came from. They are handy when you are continually switching from PHP/MySQL to ColdFusion/Oracle.  I have just found them, quite by accident, so am posting them here so that I never lose them again&#8230;<br />
For more languages, etc..  search &#8216;Visibone Cheat Sheets&#8217;</p>
<p><span id="more-267"></span></p>
<p><a rel="attachment wp-att-409" href="http://www.maggsweb.com/miscellaneous/cheat-sheets/attachment/php_cheat_sheet/"> <img class="alignleft size-full wp-image-423" title="pdf" src="http://www.maggsweb.com/wp-content/uploads/2009/11/pdf.png" border="0" alt="pdf" width="32" height="32" /><br />
php_cheat_sheet</a></p>
<p><a rel="attachment wp-att-408" href="http://www.maggsweb.com/miscellaneous/cheat-sheets/attachment/regular_expressions_cheat_sheet/"> <img class="alignleft size-full wp-image-423" title="pdf" src="http://www.maggsweb.com/wp-content/uploads/2009/11/pdf.png" border="0" alt="pdf" width="32" height="32" /><br />
regular_expressions_cheat_sheet</a></p>
<p><a rel="attachment wp-att-407" href="http://www.maggsweb.com/miscellaneous/cheat-sheets/attachment/mysql_cheat_sheet/"> <img class="alignleft size-full wp-image-423" title="pdf" src="http://www.maggsweb.com/wp-content/uploads/2009/11/pdf.png" border="0" alt="pdf" width="32" height="32" /><br />
mysql_cheat_sheet</a></p>
<p><a rel="attachment wp-att-406" href="http://www.maggsweb.com/miscellaneous/cheat-sheets/attachment/mod_rewrite_cheat_sheet/"> <img class="alignleft size-full wp-image-423" title="pdf" src="http://www.maggsweb.com/wp-content/uploads/2009/11/pdf.png" border="0" alt="pdf" width="32" height="32" /><br />
mod_rewrite_cheat_sheet</a></p>
<p><a rel="attachment wp-att-405" href="http://www.maggsweb.com/miscellaneous/cheat-sheets/attachment/jquery-cheat-sheet-1-2/"> <img class="alignleft size-full wp-image-423" title="pdf" src="http://www.maggsweb.com/wp-content/uploads/2009/11/pdf.png" border="0" alt="pdf" width="32" height="32" /><br />
Jquery-Cheat-Sheet-1.2</a></p>
<p><a rel="attachment wp-att-404" href="http://www.maggsweb.com/miscellaneous/cheat-sheets/attachment/javascript_cheat_sheet/"> <img class="alignleft size-full wp-image-423" title="pdf" src="http://www.maggsweb.com/wp-content/uploads/2009/11/pdf.png" border="0" alt="pdf" width="32" height="32" /><br />
javascript_cheat_sheet</a></p>
<p><a rel="attachment wp-att-403" href="http://www.maggsweb.com/miscellaneous/cheat-sheets/attachment/html-cheat-sheet/"> <img class="alignleft size-full wp-image-423" title="pdf" src="http://www.maggsweb.com/wp-content/uploads/2009/11/pdf.png" border="0" alt="pdf" width="32" height="32" /><br />
html-cheat-sheet</a></p>
<p><a rel="attachment wp-att-402" href="http://www.maggsweb.com/miscellaneous/cheat-sheets/attachment/google_cheat_sheet/"> <img class="alignleft size-full wp-image-423" title="pdf" src="http://www.maggsweb.com/wp-content/uploads/2009/11/pdf.png" border="0" alt="pdf" width="32" height="32" /><br />
Google_Cheat_Sheet</a></p>
<p><a rel="attachment wp-att-401" href="http://www.maggsweb.com/miscellaneous/cheat-sheets/attachment/xhtmlcheatsheet/"> <img class="alignleft size-full wp-image-423" title="pdf" src="http://www.maggsweb.com/wp-content/uploads/2009/11/pdf.png" border="0" alt="pdf" width="32" height="32" /><br />
xhtmlcheatsheet</a></p>
<p><a rel="attachment wp-att-401" href="http://www.maggsweb.com/miscellaneous/cheat-sheets/attachment/xhtmlcheatsheet/"> <img class="alignleft size-full wp-image-423" title="pdf" src="http://www.maggsweb.com/wp-content/uploads/2009/11/pdf.png" border="0" alt="pdf" width="32" height="32" /><br />
xhtmlcheatsheet</a></p>
<p><a rel="attachment wp-att-401" href='http://www.maggsweb.com/miscellaneous/cheat-sheets/attachment/xhtmlcheatsheet/'> <img class="alignleft size-full wp-image-423" title="pdf" src="http://www.maggsweb.com/wp-content/uploads/2009/11/pdf.png" border="0" alt="pdf" width="32" height="32" />HTML5_Cheat_Sheet</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.maggsweb.com/miscellaneous/cheat-sheets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
