Copy link to clipboard
Copied
Has anyone figured this out? Seems like everyone is talking about FlashBuilder that comes with PHP and that doesn't help me. So I'm still having trouble moving my mobile app to a remote server and I have FlashBuilder 4.5 Premium without PHP.
I have created a PHP project outside of Flash Builder and then I have connected to it using the Data/Service tab, but then it ask for the server information and that is where I'm having the issues.
It works create with the setting like this.
MAC:
Server Options
Web Root: /Applications/MAMP/htdocs
Root URL: http://localhost/
But when you try to export a release build or just like to test it, and insert your server settings.
Server Options
Web Root: /home/username/domain_name/
Root URL: http://mydomain.com
It doesn't Validate which in turn won't let the project work. Also it would be nice to put the remote server in there for testing instead of just for release builds. Any one have an answer. Every tutorial or explanation shows localhost.
thanks
Copy link to clipboard
Copied
Hi everyone,
I have the same problem. I just can't get the settings right. The project won't work.
What are the server settings?? What are the settings in amf_config.ini and what are they in gateway.php.
Thanks for your reply's.
gr. Erik
Copy link to clipboard
Copied
In short, I'm having the same frustrating problem. I'm sure this issue is no mystery to seasoned server people but it is a definite roadblock for those of us who are not as familiar with server settings. I think this could be cleared up easily with a little guidance from Adobe.
Copy link to clipboard
Copied
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
www
ZendFramework
library > Zend
YourProjectFolder
ProjectFolderHoldingYourPHPandVO's
amf_config.ini
gateway.php
The ini file should look like this. I use Dreamhost as a hosting company
[zend]
;set the absolute location path of webroot directory, example:
;Windows: C:\apache\www
;MAC/UNIX: /user/apache/www
webroot =/home/username/domainname.com/
;set the absolute location path of zend installation directory, example:
;Windows: C:\apache\PHPFrameworks\ZendFramework\library
;MAC/UNIX: /user/apache/PHPFrameworks/ZendFramework/library
zend_path = /home/username/domainname.com/ZendFramework/library
[zendamf]
amf.production = false
amf.directories[]=YourProjectFolder/FolderNameHoldingYourPHPandServices
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.
Todd
Copy link to clipboard
Copied
Hello guys,
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.
Erik.
Verzonden: dinsdag 20 december 2011 18:42
Aan: EGJ Steens
Onderwerp: Server settings for remote Server in Flash Builder 4.5 Premium
Re: Server settings for remote Server in Flash Builder 4.5 Premium
created by tweenOut <http://forums.adobe.com/people/tweenOut> in Using Flash Builder - View the full discussion <http://forums.adobe.com/message/4095833#4095833
Copy link to clipboard
Copied
Good catch EGJ Steens. Thanks Happy Holidays.
Copy link to clipboard
Copied
it Works for me!
Thanks!
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
hi
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 ????
Copy link to clipboard
Copied
Hi, Abinnuman,
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.. 🙂
gr. Erik