Click to See Complete Forum and Search --> : to create directories


skreddy
07-30-2005, 04:58 PM
Hi there
I am building a web site and i am fine with the HTML part of it.
I have used PHP to connect to mySQL server DB. Now I have to create an index file and directories to give access to the owners of the web site.

Could any one answer the below at least provide me the link to resources.

What is an index file.

How can we create folders ( is it in data base or elsewhere)

How to provide security to it.
I am a novice in this field and would appreciate any kind of suggestion regarding web building.

Thanks in advance
skreddy

felgall
07-30-2005, 05:11 PM
An index file is a file named index.html that is the home page for a given directory.

Directories are created on a web site not in a database. For example you might create an image directory to store your images separately from the HTML files.

decibel
07-30-2005, 05:56 PM
index.html or index.php

BeachSide
07-30-2005, 06:10 PM
it depends on what you are using it for...

index.htm or index.html -> regular html or xhtml pages

index.php/index.php3/index.phtml (there are more but these are most common) -> server will parse these as php pages

decibel
07-30-2005, 06:18 PM
dont confuse him. start with index.php, since you said you are connecting to a sql db with php. echo ""; your html in this file, with references to your database data in the html.

Or, use index.php to redirect browsers to the page you want to be your home page.