[FX.php List] Problem with web app

Steve Winter steve at bluecrocodile.co.nz
Wed Apr 30 15:04:04 MDT 2008


Random ideas;
  Are you certain they have SSL on port 443...?
  Is there a firewall issue...??
  Are other databases on the same serer accessible via https...?? via
http...??
  Can you perform a direct query of the XML interface...?
  
Just chucking stuff up to see if something sticks...

Steve


-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Bob Patin
Sent: 30 April 2008 21:49
To: FX.php Discussion List
Subject: Re: [FX.php List] Problem with web app

This is so odd...

OK, I changed to the other string, using this:


$find = new FX($serverIP,$webCompanionPort, $dataType, $scheme);
$find->setDBData($dbname,'web');
$find->SetDBPassword($webPW,$webUN);
$findResult=$find->FMFindAll();

with this in server_data:

$serverIP = "1.2.3.4.5";
$webCompanionPort = "443";
$scheme = 'https';
$dataType = 'FMPro7';
$dbname = 'xxxxx.fp7';

$webUN = 'xxxxx';
$webPW = 'xxxxx';

and it still shows the same frustrating errors...

$dataType defaults to FMPro7, doesn't it? I've never used it; doesn't  
$scheme also default to "http?"

I haven't ever specified those in any of the web apps I've written...

In this case, I *guess* they're really using SSL, since the working  
app uses it (same IP, same servers)... but even when I use the exact  
same server_data file, changing only the database name, it still fails.

I double-checked to make sure that XML is set in the database, and it  
is...

Frustrating...




> You're not telling FX to use https...!
>
> When working with FMP > 7 and with https you need to include the  
> additional
> parameters in the line;
> 	$find=new FX($serverIP,$webCompanionPort);
>
> Try making that;
> 	$find=new FX($serverIP,$webCompanionPort,'FMPro7','https');
>
> And you should find that things begin to work again...
>
> The first of those parameters is the 'default' for FX.php > 4, but  
> in this
> instance you need to specify it so that you can add the fourth  
> parameter,
> which is that it needs to connect using https, rather than the  
> default which
> is http.
>
> To ensure I don't run into this I always use;
> 	$find=new FX($serverIP,$webCompanionPort,$dataType,$dataScheme);
>
> Then in my serverVariables file I define each of those additional
> parameters, that way it's one global change if it ever needs to be  
> made (as
> in your solution now)

_______________________________________________
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