[FX.php List] Can't get query to work on FM Server 13

Bob Patin bob at patin.com
Fri Jun 13 08:45:58 MDT 2014


OK list, here’s a simple query that I can’t get to work on FM Server 13:

<?php

include_once('FX/FX.php');
include_once('FX/server_data.php');

$q =new FX('208.52.164.174',80,'fmpro7','http');
$q->SetDBData('FMServer_Sample','web');
$q->SetDBPassword('web','web');
$qResult = $q->FMView();

echo "Error code: ".$qResult['errorCode'];

?>

Notice that I hard-coded the new FX command, just to make sure that wasn’t an issue… I get error code 4, which means “Unknown command.” Huh?

The only difference in setups is that now, the website is on one server and the FM Server / web publishing engine are on another. 

I’m running PHP 5.3.26 on the web server; since I get a FileMaker error code back, I assume the WPC is 
actually sending and receiving, but what am I missing here?

Things that I’ve checked:

FX folder does exist, and ‘FX.php’ is present;
Privileges are set to allow XML;
login creds are correct
Database exists
WPE is running on the FM server because I can run the test page and it succeeds

Thanks,

Bob Patin
Longterm Solutions
bob at longtermsolutions.com
615-333-6858
FileMaker 9, 10, 11, 12 & 13 Certified Developer
http://www.longtermsolutions.com
-
iChat: bobpatin at me.com
Twitter: bobpatin
—
FileMaker Consulting 
FileMaker Hosting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting




More information about the FX.php_List mailing list