[FX.php List] Required files?

Chris Hansen chris at iViking.org
Thu Nov 17 10:57:42 MST 2005


Elleni,

There are really only three files required for FX.php:

1) FX.php
2) FX_Constants.php
3) FX_Error.php

The other files that you've mentioned are optional or examples:

* image_proxy.php - used for proxying images from a FileMaker  
database through a firewall.  Storing images in a FileMaker database  
is generally NOT a good idea (you'll get better performance if you  
let your web server handle images directly.)

* server_data.php - this file is an example of a good way of handling  
common information.  By placing data about common information in a  
single file, you can include it in multiple places, and make changes  
in a single place (e.g. that way, when IT changes the IP address of  
your FileMaker server, you only have to change one file.)

* echo_new_key.php - used in conjunction with image_proxy.php ONE  
TIME to create an encryption key.

* FMErrors.php - contains an array of FileMaker errors and their text  
equivalents.  If you need to output FileMaker errors on pages, then  
include this file.  Otherwise, just keep it around as a debugging  
reference.

* All files in the PHPCACHE folder - only needed if you're using the  
available MySQL cache.  As I doubt this is the case, you don't need  
these files.

That said, here are some good rules of thumb:

1) If you use a file, and it can be the same everywhere, place that  
file in one place and include it as needed.

2) If you use a file, but it is different for a group of files, place  
that file in a directory with the related files and include it as  
needed.

3) If there is information that varies from one file to another, just  
set a variable within each file.

4) If there are files in the FX.php distribution that you don't use,  
just keep them on a development machine, or delete them and download  
new versions from www.iviking.org when you need them.

HTH

--Chris Hansen
   creator of FX.php
   "The best way from FileMaker to the Web."
   www.iViking.org

On Nov 17, 2005, at 8:17 AM, Elleni B Fellows wrote:

> Hello all.
>
> After a very long time, our group is finally going to try using php  
> to get more of our databases on the web! I bought FxForge and am  
> reviewing the instructions for installing FX.php class on our  
> server. However, I am confused which files need to be in the "root"  
> of the webserver and which need to be actually in the site  
> directory. We have many different sites hosted on our College  
> webservers which will be making connections to different FileMaker  
> databases. I can't quite figure out what goes where!
>
> I *think* we MUST put all of these files in EACH individual site  
> directory:
> fx.php
> fx_constants.php
> fx_error.php
> image_proxy.php
> server_data.php (edited to reflect FileMaker server IP and  
> individual database name, nothing else?)
> Developer/echo_new_key.php - ????
> Developer/FMErrors.php - ????
> Developer/PHPCACHE/cache.php - ????
> Developer/PHPCACHE/phpcache.sql - ????
> So, all that stuff for the php connection and the actual web pages,  
> search.php, results.php, etc. Is there anything else? Does or can  
> anything go anywhere else on the webserver?
>
> Thanks much,
>
> Elleni
>
>
> -- 
> <ebf_2nd.jpg>
> Elleni B. Fellows
> IT Professional, CLA-OIT
> 612-625-3881
> 257 19th Ave S
> 110 Anderson Hall
> Minneapolis, MN 55455
> "'You know,' said Arthur, 'it's at times like this, when I'm  
> trapped in a Vogon airlock with a man from Betelgeuse, and about to  
> die from asphyxiation in deep space that I really wish I'd listened  
> to what my mother told me when I was young.' 'Why, what did she  
> tell you?' 'I don't know, I didn't listen.'"
>
> -- Hitchhikers Guide to the Galaxy, Douglas Adams, 1952-2001
>
>
>
>
> <ebf_2nd.jpg>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list