Jump to content

query multiple FM servers


This topic is 5761 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Is it possible with the PHP API to do a find on two FM servers?

My first find works fine

$fm_it = new FileMaker();

	$layoutName = 'webview_kell';

	$fm_it->setProperty('database', 'db_name');

	$fm_it->setProperty('host', '10.1.4.5');

    $fm_it->setProperty('username', 'test_php');

    $fm_it->setProperty('password', 'temp_pw');

I have tried to change the IP address in the host property for my second find to be the other FM server, and I get error 802(Unable to open file)

The second server has the WPE enabled, firewalls/ports are not an issue as these are on the same network.

Any thoughts or ideas would be great.

I am trying to redo a page that was done in XSLT using relationships to get the data out of the second DB(this method never really worked right)

Edited by Guest
Link to comment
Share on other sites

There's something wrong with your second server and / or your WPE deployment on your second server and / or file / permissions on the second server. Take the first one out of the picture and you'll get the same result.

A good idea might be to try and place your working file that's on the first server to the second server (should guarrantee permissions etc), ensure the file is open and see if you can connect.

Link to comment
Share on other sites

thanks, Genx,

I got all the permissions worked out(there were a few.)

Now we need to move it to a remote server that is the same setup as the internal one it currently work on.

So my scenario is this:

Apache server as web server(Web1)(behind firewall at location A)

FM server advanced(FM1)(behind firewall at location A)

FM server advanced(FM2)(behind firewall at Location B )

FM1 and Web1 are on the same network, and this find request works correctly.

the find request from the page on Web1 to FM2 does not - gets an 802 error.

I assume it is a firewall issue because when I put the file on a different internal test server, both finds work.

At Location B, we have ports 16000,16018 and 16016, and 5003 forwarded to the FM server by the firewall. From what I found in the FM documentation, this was all it mentioned.

Am I missing something glaring?

Edited by Guest
Link to comment
Share on other sites

You really shouldn't need anything other than 80 because that's what the request is made via... Is Apache (or IIS) running on port 80 on the server behind firewall B?

Link to comment
Share on other sites

Okay well that means port 80 is forwarded correctly. Now if the filter's been install correctly then you should at least be able to get a basic XML result back from a simple query such as:

http://<>/fmi/xml/fmresultset.xml?-dbnames




and / or locally: 


http://localhost/fmi/xml/fmresultset.xml?-dbnames

Link to comment
Share on other sites

Right, so I read your diagram wrong apparently FM means FM not FMS...

In that case, try open up port 16004 between your servers. If that's still failing, I'd recommend you possibly try and re-deploy your WPE.

Link to comment
Share on other sites

This topic is 5761 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.