Sunday, 28 July 2013

Using a hosted website

Using a hosted website

When you use an environment with a hosted website, such as the environments discussed in this section, for the world to see the web pages, the web page files must be in a specific location on the computer. The web server that delivers the web pages to the world expects to find the web page files in a specific directory. The web host staff or IT department should provide you with access to the directory where the web page files need to be installed. To use the web software tools and build your dynamic website, you need the following information from the web host:

✦ The location of web pages: You need to know where to put the files for the web pages. The web-host staff needs to provide you with the name and location of the directory where the files should be installed. Also, you need to know how to install the files — copy them, FTP (file transfer protocol) them, or use other methods. You might need a user ID and password to install the files. This information will almost certainly be included in a welcome e-mail with the company and available as a Frequently Asked Question (FAQ) page on its website.

✦ The default filename: When users point their browsers at a URL, a file is sent to them. The web server is set up to send a file with a specific name when the URL points to a directory. The file that is automatically sent is the default file. Very often the default file is named index.htm or index.html, but sometimes other names are used, such as default. htm. You need to know what you should name your default file.

✦ A MySQL account: Access to MySQL databases is controlled through a system of account names and passwords. The organization providing the web host sets up a MySQL account for you that has the appropriate permissions and also gives you the MySQL account name and password

✦ The location of the MySQL databases: MySQL databases need not be located on the same computer as the website. If the MySQL databases are located on a computer other than that of the website, you need to know the hostname (for example, thor.example.com) where the databases can be found.

✦ The PHP file extension: When PHP is installed, the web server is instructed to expect PHP statements in files with specific extensions. Frequently, the extensions used are .php or .phtml, but other extensions can be used. PHP statements in files that don’t have the correct extension won’t be processed. Find out what extension to use for your PHP programs.

No comments:

Post a Comment