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\.
To web-share the Swiff Chart Generator PHP samples on Apache Web Server, please follow these simple steps:
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.
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.