Archive for the ‘HTML’ Category

Browser Dependent Cascading Style Sheets (CSS) in PHP

Friday, December 17th, 2004

Everyday webmasters are learning more about making tables-less web designs. Some problems they face are incompatibilities between browsers. If you can make a CSS layout look consistent in Internet Explorer and Mozilla Firefox , then you have done well. Believe it or not, people are still using the “stone age” version 4 of Netscape Navigator which has horrible CSS support. (more…)

Stop Directory Listings on Apache

Friday, December 17th, 2004

This tutorial will show you how to stop directory listings on an Apache web server. Removing the directory listings will make your website much more secure. You can stop directory listings by editing a simple file called “.htaccess”.

Start a new document is you favorite text and save it as “.htaccess”. If you would like to stop directory listings type the following in the text editor.

Options -IndexesIf a file called “.htaccess” already exists in your web root then you will need to edit the current file. Once your “.htaccess” file is upload Apache will no longer show your directory listings.

Alternatively, if you would like to show directory listings type this into you “.htaccess” file.

Options +IndexesDirectory listings can pose as a security threat. Only allow directory listings if you know what you are doing.

Create a Favicon

Friday, December 17th, 2004

You are probably wondering what a favicon is. It’s a widely supported feature in most modern browsers that allows a site to specify a small graphics or icon to go next to the address in the address bar. Favicon are also used when you bookmark pages with Internet Explorer. For some reason IE occasionally has a problem with favicons. Mozilla, on the other hand, utilizes favicons perfectly. (more…)