Zipping and Unzipping Files in UNIX

Zipping and Unzipping Files in UNIX

There are several methods of archiving files and retrieving archives. I recommend using the “zip” function to compress your files for its ease of use and portability. (Files zipped in Unix can be extracted using various tools on various platforms including Windows).

Below I have provided various “unzip” methods. The “right” unzip method depends upon the method used to zip the file. You can tell the zip method by the file extension (e.g., .zip.tar.gz, etc.) Read more

How to Stream MP3

How to Stream MP3

[REMINDER: The transmission, storage, or presentation of any information, data or material in violation of any United States Federal, State or local law is strictly prohibited under the terms and conditions of your hosting account. This includes copyrighted material used without permission.]

To stream an mp3 file, upload your mp3 file to your www directory (or to a subdirectory of your www directory) in BINARY format. Then create a text file with a .m3u extension. The .m3u file should contain only the URL to your mp3 file, and it should be uploaded in ASCII format. Read more

What is PHP?

What is PHP?

What is PHP?

PHP is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly. Read more

MySQL Database Instructions

MySQL Database Instructions

You can create various number of MySQL databases depending on your host using the “Add MySQL Database” function of your Control Panel. Please note that most web hosts do not provide any support related to the use of this complex application beyond the information provided on this page. For more information, please visit the MySQL Home Page. Read more

Using Miva Empresa (HTMLScript)

Using Miva Empresa (HTMLScript)

What is Miva Empresa?

The Miva Engine makes building dynamic web sites as easy as writing HTML. Quickly develop server and browser independent dynamic sites using the XML standard. Dynamic sites that integrate scripting, database, and commerce can be developed and tested on a Microsoft workstation and deployed on Microsoft or Unix servers. Read more

Using the Java Compiler

Using the Java Compiler

So you’ve written (or downloaded) java code and you need to compile it. Easy enough.

    1. First, upload your .java source code using ftp. Remember to upload your code in ASCII format.
    2. Then, telnet to your account and log in.
    3. Navigate to the directory in which you uploaded your .java source code.
    4. At your telnet prompt, type:

      javac yourcode.java

      where yourcode is the name of the java source code you uploaded.

    5. Hit ENTER and a file named yourcode.class will be created.

    Read more

    Compiling C++ Programs

    Compiling C++ Programs

    Some web hosts offer gcc compiler on their servers.

    The C and C++ compilers are integrated. Both process input files through one or more of four stages: preprocessing, compilation, assembly, and linking. Source filename suffixes identify the source language, but the name that you use for the compiler governs default assumptions. Read more

    Creating Custom Error Messages With .htaccess

    Creating Custom Error Messages With .htaccess

    Most servers default to the “standard” Apache error message pages for most common browser errors. If you want to develop your own error pages, you’ll need to define those pages in a file named .htaccess, which you upload into your main www directory. The custom error pages that you develop also need to be uploaded into your www directory. Read more

    Creating a Custom 404 File Not Found Error Page

    Creating a Custom 404 File Not Found Error Page

    With some web hosts a file named missing.html or 404.html already exists in the www directory of your account. This is the page that is returned to the visitor when they attempt to visit a page that does not exist (resulting in a 404 error) on your account. You can edit this file to your liking, or create your own. Read more

    Server-Side Includes (SSI)

    Server-Side Includes (SSI)

    What are Server-Side Includes?

    Server-Side Includes (commonly called SSI) are small commands that you can put in your HTML document. These commands perform specific functions, such as inserting text, the date, server variables, etc.

    For example, on the page that you’re reading right now, the main navigation links in the left column and the section links at the top and bottom of the page are both server-side includes. This allows us to make changes to the navigation by changing only 1 file instead of changing dozens of individual pages. Read more

    Linux File Permissions Tutorial

    Linux File Permissions Tutorial

    What are they?

    Just for a few minutes, forget about Windows, where you start up your computer, create a file, can open it for reading and writing or delete it without doing anything special.

    On Linux servers, the server needs to know 2 things about files:

    1. What can be done to a file; and
    2. Who can do it

    Read more

    Fun with .htaccess – A Tutorial with Examples

    Htaccess File Tutorial: Let’s Have Some Fun With .htaccess [Examples]

    The Apache web server has a number of configuration options that are available to the server administrator. In a shared hosting environment, you don’t have access to the main Apache configuration so you’re stuck with the default configuration. However, it is possible to override some of the default settings by creating (or editing) a file named .htaccess. This htaccess tutorial will show you all the basics you will need in everyday usage. Read more