Posts Tagged ‘basic knowledge’

What is SSI?

November 6th, 2009

Server Side Includes (SSI) is a simple interpreted server-side scripting language used almost exclusively for the web.

The most frequent use of SSI is to include the contents of one or more files into a web page on a web server. For example, a web page containing a daily quote could include the quote by placing the following code into the file of the web page:

<!--#include virtual="../quote.txt" -->

With one change of the quote.txt file, all pages including the file will display the latest daily quote. The inclusion is not limited to files. In this very example, on a server that can run fortune, the output of it, a randomly selected quote, can also be included.

Server Side Includes are useful for including a common piece of code throughout a site, such as a page header, a page footer and a navigation menu. Conditional navigation menus can be conditionally included using control directives.

In order for a web server to recognize an SSI-enabled HTML file and therefore carry out these instructions, either the filename should end with a special extension, by default .shtml, .stm, .shtm, or, if server is configured to allow this, set the execution bit of the file.

As a simple programming language, SSI support only one type: text. Its control flow is rather simple, choice is supported, but loops are not natively supported and can only be done by recursion using include or using HTTP redirect. The simple design of the language makes it easier to learn and use than most server-side scripting languages, while complicated server-side processing is often done with one of the more feature-rich programming languages.

Apache and lighttpd are the major two web servers that support this language.

Host-ed.net allows SSI for paid hosting plans - Personal and Business.

What is FTP?

November 1st, 2009

File Transfer Protocol (FTP) powers one of the most fundamental Internet functions: the transfer of files between computers. Prior to 1995, FTP generated more traffic on the Internet than any other service. Today, Web developers use FTP protocols to upload/update their web sites and download other information.

A basic understanding about the FTP process and software programs is important for every Web developer. You’ll use to post and modify your Web pages at your Web host’s server.

Terms to know

Let’s review some basic FTP terms.

  • Anonymous FTP: Transfers files from the public portion of an FTP server. “Anonymous” means that you don’t have to have an account on the server. In most cases, use anonymous as your user name and your email address as your password.
  • Archive: An FTP site that contains a selection of files for download.
  • Download: Also called “Get”. Copy a file from an FTP site to another computer. If you’re merely downloading shared files an anonymous account is usually sufficient. However, if you’re downloading Web pages for update, a password and user privileges is usually required.
  • FTP site: A Web site that stores files for download. You can access the sites with a Web browser by typing in the address. All FTP site addresses begin with ftp:// (instead of http://).
  • Upload: Also called “Put”. Place files on an FTP server. Upload privileges are usually password protected to keep unauthorized users from placing files that could contain viruses or other malicious code on the server.

What Kind of FTP Program Do You Need?

If your Web page editor doesn’t provide an FTP interface or if you code your pages by hand, you can choose from many FTP programs that don’t require extensive UNIX knowledge. They provide a drag-and-drop interface familiar to Windows and Mac users.

WS_FTP is a popular FTP package for PC’s while many Mac users employ FTP programs like Fetch and Anarchie. FTP is platform independent: you can use it to upload files from a Mac to a UNIX server without any trouble.

You may actually have already used FTP and never realized it. If you developed your site in FrontPage, the simple “Publish Web” option posted it using the FrontPage extensions installed with your account on your Web host’s server. If you have FrontPage extensions installed within your site, you should only use FrontPage to send and edit your Web files.

There are three basic ways to use FTP - your choice depends on how you plan to use it.

  • FTP using a Web browser. This is most commonly used for anonymous FTP - like downloading software. Always run a current virus scan program on anything you download! No extra software is required.
  • FTP using an HTML editor. Many Web page editors bundle this interface into their products. You don’t need to install a separate FTP program.
  • FTP using a standalone program. Use this if you’re administering a complex site with CGI programming or if you need to administer file permissions remotely. Very large, complex sites may require commercial FTP packages; otherwise, evaluate the freeware and shareware programs available for download.

What are Cronjobs

October 9th, 2009

What are cronjobs? This article is about main knowledgebase - suitable for beginners.

Cron is a time-based job scheduler in Unix-like computer operating systems. ‘cron’ is short for Chronograph.

Cron enables users to schedule jobs (commands or shell scripts) to run automatically at a certain time or date. It is commonly used to perform system maintenance or administration. Although this is general purpose also it can be used for other purposes, such as connecting to the Internet and downloading email.

Cron has been recreated several times in its history.

Cron is driven by a crontab, a configuration file that specifies shell commands to run periodically on a given schedule.

Early versions of cron, available up through Version 7 Unix and 32V, made their services available only to the super-user of the operating system; this was the single-user version. With the release of Unix System V and the multi-user cron, these services were extended to all account-holding users of the system.