Stop IIS listening on all IP addresses

On a computer with multiple IP addresses, IIS greedily listens on all its IP addresses by default. This is a problem if you want to run something like Apache on one IP address, and IIS on the other. IIS 5.0 In IIS 5.0, "socket pooling" is enabled by default. This feature makes it listen on all IP addresses. To disable it, type the following at a command prompt: CD\Inetpub\Adminscripts cscrip...

Posted in IIS at 2006-11-20T11:32:00Z.

Emails in CGI

Note: these examples are all in Perl. Emails in UNIX The simplest way to send emails on a UNIX system is to use the sendmail utility: open(MAIL, '| /usr/lib/sendmail user@there.com') or "die"; print MAIL <<EOF; To: user@there.com From: user@here.com Hello, World! EOF This uses an external program to send emails. This is fine on UNIX systems which have this utility, but on anoth...

Posted in CGI at 2006-05-19T14:45:04Z.

Using Keywords to Improve Search Engine Rankings

Careful placement of keywords helps determine how relevant a search engine thinks your page is to a given keyword. The more occurances of a particular word, the more relevant the page is to that topic. However, you need to have quality content too, otherwise you won't be included in manually reviewed directories. In general, your page should have at least 100 words to be ranked highly. Keyword P...

Posted in SEO at 2005-12-29T17:25:50Z.

Link Popularity for Better Search Engine Rankings

The more relevant Web sites that link to you, the better your link popularity. Google in particular uses link popularity in its ranking formula. More Links, More Traffic The whole idea of the Web is based on the use of links. The great thing is that the more people that link to your site, the more traffic you will get while increasing your search engine ranking at the same time. Relevancy Link...

Posted in SEO at 2005-12-29T08:45:36Z.

Stopping Right-clicks with JavaScript

Of course, there isn't really any way to stop users from clicking on your pictures or viewing the source code of your frames, but this little bit of code makes it a good deal harder to right-click. Try right-clicking on this page. This trick only works with the latest browsers (4.x and higher). As the great Leonardo da Vinci once said, bad artists copy, good artists steal :-) JavaScript Code ...

Posted in JavaScript at 2005-11-17T21:16:56Z.

Configuring PHP

I would recommend getting Apache to use as a Web server when running PHP. However you can use a range of different Web servers, please read the installation instructions at the official PHP site. To configure Apache you need to edit the srm.conf or your httpd.conf to make Apache work with the PHP binary. Windows 9x/2k/NT Here you will need to add the following directives: ScriptAlias /php/ "c:...

Posted in PHP at 2005-11-17T20:50:34Z.

Preloading Images with JavaScript

Preloading images is when images are loaded into the browser's cache so that when they are needed they are displayed immediately. This is often done in JavaScript rollover effects. Using JavaScript, images can be loaded into the browser's cache with the Image object. Here is an example script that preloads three images: <script type="text/javascript"> <!-- if (document.images) ...

Posted in JavaScript at 2005-11-17T10:23:44Z.

HTML Syntax

Basic syntax rules HTML code is arranged so that elements are nested. <html> <head> <title> Example Page </title> </head> <body> Example Page Contents </body> </html> As you can see from the example, many elements need a closing tag, which is signified by a "/" character. You cannot have two ele...

Posted in HTML at 2005-11-17T10:10:37Z.

VBScript Properties

This section focuses on how to set properties for different objects and controls. This is perhaps one of the simplest tasks to do in VBScript. The general syntax for doing this is: <script> ... ObjectName.property = value ... </script> ObjectName is the name or identity of your object specified by the id attribute, and property is a specific property for the object. value is th...

Posted in VBScript at 2005-11-17T09:45:15Z.

Events in VBScript

A different event is triggered for each object on a Web page when certain things happen. e.g. the mouse is moved or clicked, or the page is loaded. There are many different events for various objects. Since VBScript is an event-driven language, everything operates by events. There are a few ways for specifying what happens in a script when an event occurs. The following explains the syntax of thre...

Posted in VBScript at 2005-11-17T09:17:26Z.