FAQs

Back to FAQ Main

Q: Email - How do I set up an email form?


Q: Email - How do I set up an email form?

A: Read this link http://llizard.cwahi.net/tutorials/php-mailform.html created by one of our very helpful members.

Q: Site Design - Frame/Iframe - The Link Bar Messes them Up!

The solution is simple, and will be checked - so if you remove the link bar from all our pages, you will be terminated immediately.

On any frame that you want the Link Bar removed from, just put the closing > of the <body> tag on the next line. Like this:

Code: [Select]
<body>

becomes

<body
>

Or with options:

Code: [Select]
<body width='100%;>

becomes

<body
width='100%'>

It only matters that the > is on the next line. I have done this intentionally to allow frames to work.

If you have a frameset, you must have the link bar appear on the top most, largest frame OR you can create a 21 pixel tall (viewable) frame that is 100% wide, and put in the proper body tag.

Again I must stress, if you use this or any other method to hide the link bar, your account will be terminated immediately.

The link bar helps thwart phishing/hacking attempts and provides much needed referral to CWahi so that we can continue to grow.

.htaccess - What is supported in .htaccess

CWahi *does* support .htaccess to a limited degree.

If you use any other commands in the .htaccess file than those below in blue, you will get a 500 Internal Server Error

1. Allow/deny access to files or directories - Allow/Deny/Order

For example, to ban access to a config file called config.php

<Files "config.php">
Order Allow,Deny
Deny from All
</Files>



2. Create password protected directories. - AuthName/AuthType/require/AuthUserFile

The .htaccess file is protected from outside viewing. As well, we have support for a secure directory called .data that you can place user passwords in.

To protect a directory named foo in account mooo:

mooo/foo/.htaccess

AuthName        Moo
AuthType        Basic
require         valid-user
AuthUserFile    /www/users/m/o/o/mooo/.data/users        # See Note Below


You have to put the full path to the user file. I've named it users in my .data folder.


mooo/.data/users

user:$1$qN7RZ...$WktjS2dzi58wE8sMKzgHP.


Note:

The path must be fully specified from the root. You can find your full web path here: http://www.cwahi.net/members/account/php_settings.php#root.

Q: Site Design - Does it matter how I name my files? (Case sensitivity)

Q: Does it matter how I name my files? (aka "Case sensitivity")

A: YES! Most servers, including ours, are what is called "case sensitive". That means that the following file names, while spelled exactly the same, are NOT the same as far as browsers, your code, and our servers are concerned.

index.html
Index.html
INDEX.HTML

For the index especially, it should be in lower case only.

For other files, it is a good idea to make a point of keeping the way you name your files "uniform". Meaning, for example (and we highly recommend this method), that you could/should name your files all in lower case.

Remember that when you are adding these file names to your coding, you must reflect exactly how they are spelled and where they are in your account.

Another Tip: Always avoid putting spaces in file names! If you must separate words, use underscores"_" or hyphens "-".  For example, "this_filename.html" and not "this filename.html".

Q: Site Design - What is "Index File Order"?

Q: What is Index File Order?

A: Browsers automatically look for certain files to load when they load a directory. If these files are not present, you will get a list of files in the directory. To avoid that, you must name your "start" page one of the following:

- index.html
- index.htm
- index.shtml   
- index.php

Note: The first one found is the one chosen!

See also "case sensitivity"

Q: Site Design - Is SSI enabled? To what extent?

Q: Is SSI enabled? To what extent?

A: SSI (Server Side Includes - httpd.apache.org/docs/1.3/howto/ssi.html) is enabled on ALL .htm, .html or .shtml files.

All commands except exec work!

Q: Site Design - Where is my web directory? It says "not found"?

Q: Where is my web directory? It says "not found" and I signed up hours ago!

A: Your web directory/url is created when you upload something the first time using the file manager, or FTP.

After you upload something, try it: http://yourusername.cwahi.net - naturally changing the "yourusername" to your user name ;)

Q: Site Design - Should I keep a Backup?

Q: Site Design - Should I keep a Backup?

A: Yes, you should always keep a backup of your site. For best results maintain multiple backups. Our system design emphasizes reliability, but that doesn't protect you from things like falling asleep at the keyboard and imprinting the delete key on your forehead, or someone getting your password and wiping out your hard work.

Q: Site Design - What happens if I accidentally delete my site?

Q: Site Design - What happens if I accidentally delete my site?

A: If you accidentally delete your site, the files are gone and you will need to re-upload them. Always maintain a backup of your website in case of disaster. If you update the site regularly, it's advisable to keep backups with several of the latest revisions made to the site.

Q: Site Design - How do I organize my web site?

Q: Site Design - How do I organize my web site?

A: A well organized web site will save you considerable time and effort in the long run. Try the following tips to keep your site maintained.

Keep your HTML files in the root directory of your site. (/index.html, /menu.html)

Ensure that filenames are lowercase for consistency. This will ensure that even if you move your site from a server that is not case sensitive to one that is, the files will still be accessible. (image.jpg, index.html)

Use filenames that are descriptive: menu.html is a much better choice than m.html

Avoid spaces or punctuation in filenames.

Put all images in an /images folder. You can also create subfolders under images to manage large collections. (/images/dogs, /images/menu)

Cascading Style Sheets should be stored in a directory called /css or /styles. This will make them quite easy to find, and lets you track multiple versions more easily than if they are intermixed with .html files.





Q: Site Design - Where can I learn about HTML and other aspects of web design?

Q: Where can I learn about HTML and other aspects of web design?

A: There are many excellent sites offering tutorials in HTML and page design.

HTML:
http://www.w3schools.com

CSS:

Javascript:

Colors:
http://www.lynda.com/hex.asp

Layout:

Q: Site Design - What is CSS and why would I want to use it?

Q: What is CSS and why would I want to use it?

A: CSS is an acronyn for Cascading Style Sheets. Style Sheets allow you to easily change the layout of a page while maintaining the content. Styles can be written directly into your HTML files, or managed in a separate .css file.

For an excellent example of what you can do with CSS check out the CSS Zen Garden at http://csszengarden.com.

Zen Garden uses CSS to create new themes and visuals though the text content remains unchanged.