./

Now, if you want to insert an Image file which is located at this directory “some_directory”, you can write following code in your index.html page:

<img src = "./myimage.jpg">

If you want to use an image from a directory “another_dir” on level up, you should use “../”

<img src = "../another_dir/another_image.jpg">

Both some_dir and another_dir are located under the home of your domain (www.somedomain.com).

/

Now, let’s talk about using “/”

“/” means beginning from the Root level of your file system. Suppose, in Linux, you want to Change your current working directory to the directory “etc”. Since “etc” is placed just in the Root directory of your file system (see the image below), you should type something like this in your command-prompt:

cd /etc

If you tried with the command “cd ./etc”, it wouldn’t work! Why? Because “./” means beginning from the Current Working directory. Normally, when you use a command-prompt it selects the user’s Home folder as current working directory. So if you want to go to a directory based on root level, you should use “/” instead of “./”

Usually, .tar.gz or .tar.bz2 files are compressed files (just like zip files in windows). so, first you need to extract the contents of the .tar.gz file.

Extract a .tar.gz or .tar.bz file:

Right-click on the file and select Extract. Optionally, you can extract using a terminal:

.tar.gz files:

tar xzvf filename.tar.gz

.tar.bz2 files:

tar xjvf filename.tar.bz2

Now examine the extracted files! Normally, .tar.gz files contain source-codes which should be compiled to executable files. This means extra work to do. Instead, if the contents are .deb files or shell script (.sh format), you are lucky.

Step 2: Copy all the contents to desktop. Use it just for simplification!

Now depending on the types of extracted files, choose one of the following method:

Install from a .deb file:

Just double-click to open it!

Install from .sh file:

Open terminal and press following codes:

sudo chmod a+x ~/Desktop/filename
sudo sh ~/Desktop/filename

Install from Source files:

How to understand if the contents of .tar.gz file are source files? If the .tar.gz contains too many files, possibly files with .c or .cpp extentions, you may assume that they are source codes. You may try following methods to make executable (binary) files from source code:

To generate HTML Pages by PHP, we need to echo certain HTML tags, like <head>,<html>, external javascripts, css, <meta> tags blah blah blah…. it’s boring to print these tags each time you create a HTML page just to display a short message or short body. So I’ve created a template called html.php, you can include this source in your php page and call html_head() to generate the basic HTML tags!