amfphp 1.9 problem on remote server
Any thoughts on this issue would be appreciated...
1. I can get amfphp1.9 working local but not on my remote webserver. (I'm using the HelloWorld sample)
2. I had no problems with amfphp 1.2 on remote or local server - I understand the crossdomain issue
3. I'm using flash 8 with php 5.2. Again - it works locally.
4. I uploaded the amfphp directory to my remote server minus the samples folder (which has the fla files.)
5. Changed connection string from local to the the url
********************************* my FLA file in my root directory
var gatewayUrl:String = "http://carlosinla.com/amfphp/gateway.php";
import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;
NetDebug.initialize();
var oPosts:Object;
var _service:Service = new Service(gatewayUrl, null, "HelloWorld", null, null);
var pc:PendingCall = _service.sayHello();
pc.responder = new RelayResponder(this, "handleResult", "handleError");
function handleResult(re:ResultEvent) {
oPosts = re.result;
trace (oPosts.length);
test_txt.text=oPosts.length; //initial text changes to '12' locally - but no change on web server.
}
********************************* the PHP file in www\amfphp\services directory.
class HelloWorld
{
function sayHello()
{
return "Hello World!";
}
}
?>
********************************* cross-domain file in root directory
SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">

did you see this
I got it to work by following this
http://wadearnold.com/blog/?p=20
eow
(edited)
oh I see you got the answer.
thanks for that link
I need to update my crossdomain.xml file. The way I got it to work was by disabling the .htaccess file - I'm not sure that was the best way to do it.
This URL:
This URL: http://carlosinla.com/amfphp/gateway.php
Gives a 500 error.
Thank you Omar
I disabled .htaccess and got it to work. I didn't get the 500 error until I opened it in internet explorer. Firefox didn't give me a message.