Thanks. Much appreciated.

On Mon, Sep 8, 2008 at 8:33 AM, Haykel BEN JEMIA <[EMAIL PROTECTED]> wrote:

>   Hi,
>
> in my understanding, FB only uses webroot for the deployment of your
> application so that you don't need to copy the files to the server after
> each compilation. Is it what you are doing now?
>
> For the localhost question, if the uri of the endpoint doen not contain the
> server address, then flex uses the one from which it is being loaded.
>
> Bye.
>
>
> On Sun, Sep 7, 2008 at 10:30 PM, nwebb <[EMAIL PROTECTED]> wrote:
>
>>   Hi,
>>
>> I skipped a step when setting up a flex-remoting (amfphp) project, but it
>> still works.
>>
>> I didn't set up the Flex project to use PHP when I created it, and so
>> didn't define the webroot or the root url at all.
>>
>> I added in the services-config file (see code at the bottom of this email)
>> and I added the following additional compiler argument: -services
>> "services-config.xml" and that was all I needed to get things working.
>>
>> Does anyone know if amfphp automatically assume the uri in the config file
>> will start with http://localhost/ when not otherwise defined?
>>
>> The config file I used defines gateway.php as being in the "amfphp" folder
>> in the webroot, but how does the Flex project know the location of my
>> webroot?! (which by the way is C:\xampp\htdocs)
>>
>>
>> Cheers.
>>
>> // SERVICES-CONFIG CODE
>> <?xml version="1.0" encoding="UTF-8"?>
>> <services-config>
>>     <services>
>>         <service id="amfphp-flashremoting-service"
>>             class="flex.messaging.services.RemotingService"
>>             messageTypes="flex.messaging.messages.RemotingMessage">
>>
>>             <destination id="amfphp">
>>                 <channels>
>>                     <channel ref="my-amfphp"/>
>>                 </channels>
>>                 <properties>
>>                     <source>*</source>
>>                 </properties>
>>             </destination>
>>         </service>
>>     </services>
>>     <channels>
>>     <channel-definition id="my-amfphp"
>> class="mx.messaging.channels.AMFChannel">
>>         <endpoint uri="/amfphp/gateway.php"
>> class="flex.messaging.endpoints.AMFEndpoint"/>
>>     </channel-definition>
>>     </channels>
>> </services-config>
>>
>
>  
>

Reply via email to