Main

Programming Archives

October 2, 2006

No installed service named Apache2

If you came across to this error while installing apache2, well, heres the fix.

Goto your apache installation folder its usually at:

C:\Program Files\Apache Group\Apache2\bin

Execute this command:

Apache.exe -k install -n "Apache2"

-k install -- tells apache to install an Apache service
-n "Apache2" -- sets its service name to be Apache2
-k start -- Start Apache server
-k restart -- Tells Apache to do a restart

You can then test your installation by typing in http://localhost/ to your browser address bar.

December 8, 2006

HTML Error Codes

Actually, they are better called response codes. Below is a list of the HTML error codes and its short description

Informational
100="Continue"
101="Switching Protocols"

Successful Client Requests
200 OK
201 Created
202 Accepted
203 Non-Authorative Information
204 No Content
205 Reset Content
206 Partial Content

Client Request Redirected
300 Multiple Choices
301 Moved Permanently
302 Moved Temporarily
303 See Other
304 Not Modified
305 Use Proxy

Client Request Errors
400 Bad Request
401 Authorization Required
402 Payment Required (not used yet)
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable (encoding)
407 Proxy Authentication Required
408 Request Timed Out
409 Conflicting Request
410 Gone
411 Content Length Required
412 Precondition Failed
413 Request Entity Too Long
414 Request URI Too Long
415 Unsupported Media Type

Server Errors
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported

March 29, 2007

IE7 always keep a cache of the visited pages

The new version Internet Explorer 7 has a problem in caching of the displayed specially if you are using some ajax applications. Even if you have use the meta tags that specifies no cache, the IE7 would ignore them.

<meta name="pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="cache-control" content="no-cache">

The above code does not work on IE7. You could force the browser to remove the cache by manually deleting it or by using the following code below in PHP:

// choose a date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// set the last modified date to today
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// if the browser supports HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// if the browser supports HTTP/1.0
header("Pragma: no-cache");

Another way is to add the meta tag code below in between your end body tag and your end html tags. It does not conform to the w3c standards, but it works. :D

</body>
<head>
<meta http-equiv="PRAGMA" content="NO-CACHE" />
</head>
</html>

About Programming

This page contains an archive of all entries posted to Tildemark blogs in the Programming category. They are listed from oldest to newest.

Internet is the previous category.

Shopping is the next category.

Many more can be found on the main index page or by looking through the archives .

Here is the list of Subcategories under Programming

Creative Commons License
This weblog is licensed under a Creative Commons License .
Powered by
Movable Type 3.33