Hi Rick,
For installation instructions, I believe most of our users will be on shared hosting meaning they
won't have access to include_path installations. For local development, imho the best is setting an
alias to flashservices in httpd.conf which will propagate to all virtual hosts.
The examples are now in the examples folder in the sources directory. browse.php is deprecated and
should be deleted (I've just done this actually) since we are now working the the more complete
service browser in flashservices/browser. gateway.php is deprecated too, the distribution version
should include Gateway.php as such:
include realpath(dirname(__FILE__)) . "/app/Gateway.php";
Also, I don't think placing secured.php in the basic folder is a good idea, and instance name seems
to me like very weak security. Perhaps we could talk about it in the manual though, as an advanced
subject.
To me the php files in basic/services are fine, but the fla's aren't. For one they use AS1, and the
updated AS2 framework is much better. Also, the examples are convoluted, they are not very easy to
learn from beacuse of the multiples layers with code on them.
I think we should be consistent and offer AS2 examples based on the Service class, it's easier to
read and since the user will be creating classes on the server-side, we'll have a very nice selling
point of a 100% OO framework. AS2 is more appropriate for this kind of thing anyway.
credentials.fla should be moved into a 'secureservice' folder and I wouldn't dare keeping
example.fla in a 'basic' folder.
Your suggestion on display_errors makes sense, and also setting up output_buffering and flushing it
should solve some issues with NetConnection.BadVersion when there are extra blank lines in services
files.
You should not get any errors using ServiceBrowser.php with the browser in flashservices/browser.
In your install instructions, you should mention that the browser folder should not be deployed on
public servers for most purposes, since it gives direct access to the method definitions, which
probably isn't wanted.
Please place your docs on the Wiki so we can all see it! (www.amfphp.org/wiki)
Patrick
Rick Widmer wrote:
>
>
> Rick Widmer wrote:
>
>> First do the CVS versions of examples/basic work? I've tried
>> credentials.fla and browse.php and found errors in both. The
>> question... is it a problem with my install, or something that needs
>> to be fixed before 1.0 release?
>
>
> On closer observation, they are warnings. Is the library safe for use
> with error_reporting set to E_ALL?
>
>
>
> Warning: Missing argument 1 for ServiceBrowser::ServiceBrowser() in
> /web/hosts/test.optischool.com/lib/flashservices/util/ServiceBrowser.php
> on line 94
> Exploring services/CreateObject.php
>
>
>
>
> Warning: file_get_contents(tpl/astemplate.txt)
> [function.file-get-contents]: failed to open stream: No such file or
> directory in
> /web/hosts/test.optischool.com/lib/flashservices/util/ServiceBrowser.php
> on line 393
>
> Warning: file_get_contents(tpl/methodtemplate.txt)
> [function.file-get-contents]: failed to open stream: No such file or
> directory in
> /web/hosts/test.optischool.com/lib/flashservices/util/ServiceBrowser.php
> on line 394
>
> Warning: file_get_contents(tpl/callbacktemplate.txt)
> [function.file-get-contents]: failed to open stream: No such file or
> directory in
> /web/hosts/test.optischool.com/lib/flashservices/util/ServiceBrowser.php
> on line 395
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> amfphp-cvs mailing list
> amf...@li...
> https://lists.sourceforge.net/lists/listinfo/amfphp-cvs
>
>
>
|