Ec (2); new features: & nbsp; 1. AMF3 support: Includes RemoteObject, which can be used on Flex2. & Nbsp; 2. JSON (lightweight data exchange format) support: attach to gateway. php, json. php will make you better use your own JSON service in Flash. There are two examples: MochiKit and Spry. The XML-RPC is also script ec (2); script
New features:
1. Support for AMF3: including RemoteObject, which can be used on Flex2.
2. JSON (Transport Cr into pt Object Notation, lightweight data exchange format) support: attach to gateway. php, json. php will make you better use your own JSON service in Flash. There are two examples: MochiKit and Spry. XML-RPC is also supported.
3. A new browser. It is worth mentioning that the MochiTest routine can also be used in JSON mode. So you can verify that it can run in both the AMP and JSON modes.
4. $ this-> the end of methodTable. It can be ignored from now on. All Methods can use the default value indirectly.
Install Amfphp 1.9 beta 2
Currently, the latest version of amfphp1.9 is amfphp1.9 beta2, which can be downloaded at http://www.5etdemi.com/uploads/amfphp-1.9.beta.20070126.zip. Decompress the package to the hard disk and copy it to the apache web directory. Enter http: // localhost: 8080/amfphp/gateway. php. A description file of the amfphp gateway is displayed. The basic installation of AMFPHP has been completed.
Iv. Install AMF Extension
The latest version of AMFPHP adds an AMF Extension: it uses C to write an AMF protocol decoding and encoder, greatly improving the execution efficiency. Especially for large data sources, operations that may time out and cannot be completed with php encoding can be completed with AMF extension. Easy to install:
1. Download
To begin.
2. Configuration
Open php. ini and add the following line: extension = php_amf.dll
We do not need to modify or configure the AMFPHP itself. The system will automatically monitor whether the extension exists and automatically apply it if it exists. Otherwise, PHP decoding and encoding will be used.
All right, share the web, and alias it flashservices. Web applications supporting Amfphp are configured. We only need to write the remote service class in the root directory services of Amfphp to access it in Flash and Flex.
V. Localization settings
Because the default PHP encoding language is ISO-8859-1, to make the Web application configured earlier support simplified Chinese, the best way is to open the gateway under the root path of Amfphp. php, change $ gateway-> setCharsetHandler ("utf8_decode", "ISO-8859-1", "ISO-8859-1"); to $ gateway-> setCharsetHandler ("iconv", "GBK ", "GBK. To solve Chinese garbled characters in MySQL, use mysql_query ("set names ''gbk ''");.