免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2011年3月9日 星期三

Reproduce "Flex Test Drive: Build an application in an hour" for php on my website hosted at bluehost

I have spent more than 10 hours to reproduce Adobe's "Flex Test Drive: Build an application in an hour" for php on my website hosted at bluehost :

http://3hsite.info/flex/TestDrive/flex1-debug/flex1.html

partially because i'm a tyro in Flex;
partially because that i try to locate Flex application/service and Zend lib different from the default configuration.

To make the change of location work , i'd got to edit amf_config.ini, gateway.php and php.ini ...
after some try-and-errors and repeated reading the instructions in the references,
finally i got it.


* amf_config.ini :
web_root
zend_path

* gateway.php:
$webroot = $_SERVER['DOCUMENT_ROOT'];
$configfile = "$dir/amf_config.ini";
$zenddir = $webroot. '/zend/library'; //shd match zend_path in amf_config.ini

* php.ini:
include_path should contain zend_path in amf_config.ini




[ref]
http://www.adobe.com/devnet/flex/testdrive/articles/1_build_a_flex_app.html

http://www.adobe.com/devnet/flex/testdrive/articles/1_build_a_flex_app2.html

http://www.adobe.com/devnet/flex/testdrive/articles/1_build_a_flex_app3.html

http://www.adobe.com/devnet/flex/testdrive/articles/1_build_a_flex_app4.html

沒有留言:

張貼留言