[FX.php List] calling DB on other server

Dave Strickler dstrickler at mailwise.com
Fri Jun 10 06:18:43 MDT 2005


Perhaps this code will shed some light:
 
<?PHP
include_once('FX/FX.php');
include_once('FX/FMErrors.php');
include_once('FX/server_data.php');

$returnCount = 20; // new

$serverIP = "12.13.14.15" ;   // The IP address or DNS (like
'fm.mydomain.com') of your Filemaker client you are talking to
$webCompanionPort = 591   // The standard port for talking to
Filemaker

$query = new FX($serverIP,$webCompanionPort,'FMPro7');
?>
 
Note that fx.php doesn't talk to a FileMaker server, it talks to a
FileMaker client that has the Web option enabled. So it talks to the
Client, which then talks to the Server. Note this means you need a copy
of a FileMaker client somewhere in the mix. I would recommend a
dedicated one. Although the queries are fast, they will 'bother' an
end-user. However, for testing, you can even use the Client you have on
your desktop.

Hope that helps a bit,
 
Dave Strickler
MailWise LLC
617 267-0044 x810 
www.mailwise.com


>>> Lynn at turnkeydesign.net 6/10/2005 1:08:54 AM >>>
Please excuse my newbie-ness,

I am testing out how to have my html files on one hosting server, while

calling my database on another hosting server. In my first and only 
fx.php site, I had everything on one server.

I'm duplicating my first fx.php sites files exactly to avoid unknowns 
at this point. I am repurposing a page that starts like this:

<?
include_once('FX/FX.php');
include_once('FX/FMErrors.php');
include_once('FX/server_data.php');

$returnCount = 20; // new


$query = new FX($serverIP,$webCompanionPort,'FMPro7');

Is the segment that says $serverIP supposed to tell the server address?

Where do I indicate the location of the db server?

Also - is there a book out about FX.PHP with Filemaker? I would feel 
less stupid looking up things in private, rather than showing everyone

what I don't know :)

Thanks,
-Lynn

_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org 
http://www.iviking.org/mailman/listinfo/fx.php_list 



----------------------------
This message has been certified virus-free by MailWise Filter - The real-time, intelligent, e-mail firewall used to scan inbound and outbound messages for SPAM, Viruses and Content.  For more info visit: http://www.mailwise.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20050610/f9e63497/attachment.html


More information about the FX.php_List mailing list