[swx] Minimal SWX PHP setup.
Hans Elgelid
helgelid at telia.com
Sun Oct 14 07:40:14 PDT 2007
Thanks for the summary.
I sure want to use the SWX Service Explorer and Data Analyzer and they
as you say, they use IP and AMFPHP to communicate. So now to verify my
understanding, I wonder from the following ant code:
<macrodef name="copy_swx">
<attribute name="destDir"/>
<attribute name="size"/>
<sequential>
<!--Switch statement see:
http://ant-contrib.sourceforge.net/ant-contrib/manual/tasks
http://ant-contrib.sourceforge.net
Copy ant-contrib-0.3.jar to ant/lib or
eclipse/plugins/org.apache.ant_1.6.5/lib -->
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<switch value="@{size}">
<case value="small">
<!--
http://ant.apache.org/manual/CoreTasks/copy.html -->
<echo>Copying small part of swx to @{destDir}
------------------</echo>
<copy todir="@{destDir}" overwrite="true">
<fileset dir="scripts">
<include name="swx/php/*.php"/>
<include name="swx/php/core/amf/**"/>
<include name="swx/php/core/shared/**"/>
<include name="swx/php/lib/*.php"/>
<include name="swx/php/services/Simple.php"/>
</fileset>
</copy>
</case>
<case value="medium">
<echo>Copying medium part of swx to @{destDir}
-----------------</echo>
<copy todir="@{destDir}" overwrite="true">
<fileset dir="scripts" excludes="**/*.txt">
<include name="swx/php/*.php"/>
<include name="swx/php/core/**"/>
<include name="swx/php/lib/*.php"/>
<include name="swx/php/lib/phpFlickr/**"/>
<include name="swx/php/lib/ezsql/shared/**"/>
<include name="swx/php/lib/ezsql/mysql/**"/>
<include name="swx/php/services/**"/>
</fileset>
</copy>
</case>
<default>
<echo>Copying all of swx to @{destDir}
-------------------------</echo>
<copy todir="@{destDir}" overwrite="true">
<fileset dir="scripts">
<include name="swx/**"/>
</fileset>
</copy>
</default>
</switch>
</sequential>
</macrodef>
1. Is the the "small" case above pretty much the minimal configuration
for running swx on a production server while still being able to debug
using the SWX Service Explorer and Data Analyzer from my full localhost
setup?
2. Is the "medium" case above pretty much the minimal configuration for
using all of swx on a MySql production server?
Trying to come up with something for the 28th,
http://swxformat.org/contest
/ Hans
> There is the SWX PHP Deployment Bundle that you can download from
> http://swxformat.org/download. If you want to go even more bare-bones
> than that (and don't need AMF), you can remove AMFPHP from the library
> and the amf gateway. Same goes for the JSON, etc. gateways (they can
> be removed without affecting anything else). Finally, if you don't
> need the APIs, you can remove the ones that ship with it and the
> corresponding libraries (eg.phpFlickr for the Flickr API).
>
>
>> Also it would be nice with a summary how the other packages relate to
>> each other. For example if you want to expand a minimal configuration
>> with the ezsql and phpFlickr lib, what are their dependencies?
>>
>
> The various items in the library (/lib) folder have no
> interdependencies (eg., ezsql, phpFlickr, etc)
>
> The various APIs extend and require the BaseService class and may
> require a library (eg., the Flickr API requires the phpFlickr
> library).
>
> Apart from that, the SWX Service Explorer requires the presence of
> AMFPHP and the amf gateway (amf.php).
>
> Hope that helps + best of luck on your project. I look forward to
> hearing about how it goes. If you like, we may be able to include it
> on the SWX showcase or do a case study on it.
>
> Take care,
> Aral
>
>
>
More information about the swx
mailing list