Ok so here is what I did to get my working. Upload the ZendFramework folder to the root of your remote hosting server. You only need the library folder inside the ZendFramework folder and it will take a while to upload this folder.
Then I created my remote folder in my root dir. So it should look like this
library > Zend
The ini file should look like this. I use Dreamhost as a hosting company
;set the absolute location path of webroot directory, example:
;set the absolute location path of zend installation directory, example:
zend_path = /home/username/domainname.com/ZendFramework/library
amf.production = false
You don't need to do anything to the gateway.php.
Now in your Flex project go to the services. You should see two classes. One named _Super_YourServiceName.as and YourServiceName.as
In the YourServiceName.as file there should not be that much code in the file. So you should see a super.preInitalizeervice(). Right under that override the url for the remote server. So like this.
//super._serviceControl.endpoint = "http://www.yourdomain.com/YourProjectFolder/gateway.php";
That should work.
I hope that helps.
I have found a solution: In ZendFramework/library/Zend/Amf/Response/Http.php linenumber 59:
$ssl = $_SERVER['HTTPS']; is given an error.
I did this:
$_SERVER['HTTPS'] = 'off';
$ssl = $_SERVER['HTTPS'];
So add this line....
And it works...
Hope it works for you too.
Ooh, and don't forget to follow the instruction of TweenOut.
Van: tweenOut email@example.com
Verzonden: dinsdag 20 december 2011 18:42
Aan: EGJ Steens
Re: Server settings for remote Server in Flash Builder 4.5 Premium
it works for me but when I query the remote server, if the number of tables contained in the requests is greater than 4 or the information returned by the database is large, such as a field that has the attribute LONGTEXT and I put a long text, I receives no data. But locally it works fine, all the data is displayed. I remember that I tried to make a mobile application with Flash Builder 4.6. Thank you to anyone who wants to help me
i know i'm re invoking a very old post. But i'm stuck at "using liver server" part.
I've followed tweenOut's suggestion. and if i call gateway.php it says "Zend Amf Endpoint.. " i am assuming it says that everything is ok. But when i run my application from pc to test it with server php services , it says "service do not exists !!!!!
I've also configured my amf_config.ini files so that php service holder folders are included.
Can anyone please help me out ????
Try to put your services in the default folder first. So use the Services folder of the amfphp framework. If it works then try to move the services to your folder. And make sure the naming is correct. Use capitals in your call in the same way you named your files and services. But I assume you checked that a few times before posting here.. :-)