Contents

Introduction
Samples Installation
Testing Swiff Chart Generator


Introduction

To run the Swiff Chart Generator PHP samples on your Apache Web Server you need to have the PHP module or CGI installed. To make the Swiff Chart Generator PHP samples available on your Apache Web Server you need to create a Virtual Directory (also known as web-sharing a directory) pointing to the disk location of the Swiff Chart Generator samples, usually C:\Program Files\GlobFX\Swiff Chart Generator 4\samples\.


Samples Installation

To web-share the Swiff Chart Generator PHP samples on Apache Web Server, please follow these simple steps:

  1. If Apache is running, stop it.
  2. In the Apache installation directory, usually C:\Program Files\Apache Group\Apache\, open the conf\ directory.
  3. Edit the httpd.conf file.
  4. In the httpd.conf file add the following lines
     Alias /samples/ "C:/Program Files/GlobFX/Swiff Chart Generator 4/samples/"
     <Directory "C:/Program Files/GlobFX/Swiff Chart Generator 4/samples/">
         Options Indexes MultiViews
         AllowOverride None
         Order allow,deny
         Allow from all
     </Directory>

Now, you can use the samples alias to get to the files stored in the Swiff Chart Generator samples directory.


Testing Swiff Chart Generator

To test the Swiff Chart Generator installation, open your web browser (you must have the Flash plug-in installed) and type the following URL in:

http://your_server_name/samples/index.html

where yourserver is the machine name of your web server (possibly 127.0.0.1 - the localhost machine)

An HTML page should appear, providing you with the list of samples. Select PHP Samples.

Note: Apache uses the alias samples to refer to the physical directory [drive letter]:\Program Files\GlobFX\Swiff Chart Generator 4\samples\. When you run a PHP page, you must type its URL in the browser's address window. You can't load the file into the browser because it won't execute the PHP features unless you access it via Apache Web Server with PHP installed.