Installing AMFPHP

First, you need to download AMFPHP from http://www.amfphp.org. As with many open source projects, you can download either the most recent stable build or the absolutely latest version of the code from the project’s source code repository. Unless you plan on helping out with the development of AMFPHP, it’s generally best to use the stable build. The following directions assume that you are using Version 0.5.1 of AMFPHP, so be sure to check the documentation that comes with AMFPHP if you are using a more recent version.

There are a number of ways to install AMFPHP, depending on your exact requirements, but the following two approaches are the most common.

The first approach assumes you can modify the include_path variable for your PHP environment or that you know the current include_path and can copy files to that location. For more information on how to modify include_path, be sure to check out the PHP documentation and your web server’s docs. (For example, for Apache, you can modify include_path with either your httpd.conf file or an .htaccess file). Once you have include_path set up to your liking, simply copy the flashservices directory included in AMFPHP to a directory specified in include_path.

The second approach doesn’t require any kind of special access to your server, but you may want to have access to your domain’s web root if you would like to do a single installation for your whole domain (which is recommended). To install AMFPHP this way, just upload ...

Get Flash Remoting: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.