Server Installation

Before you can begin adding banner adverts, you must copy the PHP files to your webserver and run the installation script to install the database tables. If you do not wish to perform the server installation on your own, you may order a professional installation from the order page of the Flashloaded website.

First you should decide on the folder structure that you will creating on your webserver. During the course of the installation process you will be creating the following 3 folders on the server side:

 

banner_admin A protected folder containing banner administration files.
Accessible by the banner administrator only.
banner_scripts A folder that is open for everyone to read and execute
banner_images A folder that contains the banner images and to which everyone has
full permission to read/write and execute

Note: Webserver requirements: PHP 4 and MySQL 3 or higher.
Flash requirements: Flash MX or Flash MX 2004 (published for Flash Player 6 or 7).
 

After extracting the downloaded files, you should have the following 3 folders: banner_admin, banner_scripts, banner_component

Find the file called config.php which is located in the banner_admin folder and open it in a text editor (such as Notepad):

1. Edit the following parameters in this file to match your MySQL database parameters:

// database host - in most cases leave this as "localhost"
$DBhost = "localhost";

// database username
$DBuser = "ENTER DB USERNAME HERE";

// database password
$DBpass = "ENTER DB PASSWORD HERE";

// database name
$DBName = "ENTER DB NAME HERE";

 

2. Enter the relative path from the directory where the config.php file is located (banner_admin) to the banner_images folder:

// Enter the relative path of the images folder
$imgPath = "../banner_images";

 

3. Enter a username and password for the banner administrator:

$admin_username = "admin";
$admin_password = "123";


4. Enter the maximum file size in bytes for uploaded banner image files:

$MAX_FILE_SIZE = 15000;



Save the config.php file.

 

Create 3 folders with the following names on your webserver and set the permission accordingly:

banner_admin 755
banner_scripts 755
banner_images 777

If you using a Windows webserver or an FTP program to set the permissions, this is how the folder permission settings should look:

Permission Setting: 755
Permission Setting: 777

 

Upload the contents of the banner_admin and banner_scripts folders to the folder with the same names on your webserver.

Note: Most FTP programs have an "auto" mode which automatically detects the file type to upload. If you manually select the file type, all the files must be uploaded in ASCII (text) mode with the exception of banner_admin/banner_rotator.jpg which must be uploaded in binary mode.

As an added security, we recommend password protecting the entire banner_admin folder that is on your webserver. Many wehosting control panels include an option to easily password protect a folder. If you are unsure as to how to do this, we suggest checking with your webhoster first. Note: The only folder that should be password protected is banner_admin.

You are now ready to set up the database. Click here for instructions on setting up the database.