The FileSpring Pipeline was created to allow the use of PHP to post-process web pages created by Web Companion. This is especially useful if you have an existing WC/CDML solution that you don't want to recode but you want more data processing power than CDML can provide.
To our knowledge, FSP is the only solution that allows you to reuse existing CDML without recoding and incrementally add PHP where you need it. No tag changes, no URL changes.
If you want to create dynamic web pages in PHP with FMP as a data source, have a look at FX.php. FSP and FX.php can be used together on the same site, even on the same page if you like. FX.php is one of the components of the complete FileSpring "technology suite."
FSP is similar in operation to Web Server Connector. Like WSC, FSP runs on a full-fledged web server (Apache is recommended and the only web server covered in these instructions) and forwards requests to Web Companion. It does not do load balancing, although WSC-style load-balancing (really request alternation) would be easy to implement. And with FSP you get all the source code!
How it works
Alias directives tell Apache to send any requests containing the string "FMPRO" (or variants) to FSP.php. FSP processes the HTTP request and rewrites it to go to Web Companion running on the host and port number specified in the config file. This is similar to a reverse proxy.
Since it has to forward the URI and the POST data in the request, FSP will also look for and remove any reference to "-fmp_xml" if the $filter_xml config variable is set. This will effectively cripple any request that is trying to get XML data out of Filemaker. Such a request will still be forwarded on to WC, but without a valid format statement, WC will return an error.
FSP waits for the requested page to come back from WC. When it has the complete page, it will run it through PHP (unless $passthru is set), allowing you to post-process the results of a CDML page with PHP. The PHP code is actually embedded in the web page along with the CDML--WC will ignore it, passing it back to FSP along with the HTML.
After PHP has evaluated the web page, it is sent back to the browser, which is none the wiser to all the activity behind the curtain!
Question
dannydv
FileSpring Pipeline (FSP)
When to use FSP
How it works
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.