[FX.php List] Problem with web app

Steve Winter steve at bluecrocodile.co.nz
Wed Apr 30 14:32:17 MDT 2008


Hi Bob,

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)

Hope this works for you...

Cheers
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:20
To: FX.php Discussion List
Subject: Re: [FX.php List] Problem with web app

No, it works fine with their other web app...

Same web server, same FM server... I'm totally stumped... :)

BP


On Apr 30, 2008, at 1:57 PM, Gjermund Gusland Thorsen wrote:

> Perhaps you have to sign the cert again?
>
> 2008/4/30 Bob Patin <bob at patin.com>:
>> I'm trying to fix a web app that someone else wrote, and when I  
>> tried a
>> simple test query
>>
>>
>> include_once("FX/FX.php");
>> include_once("FX/server_data.php");
>>
>> $find=new FX($serverIP,$webCompanionPort);
>> $find->setDBData('database.fp7','web');
>> $find->SetDBPassword("xxxxx","xxxxx");
>> $findResult=$find->FMFindAll();
>>
>> print_r($findResult);
>>
>> I get this when I use print_r():
>>
>> fx_error Object ( [error_message_prefix] => [mode] => 1 [level] =>  
>> 1024
>> [code] => 100 [message] => FX: cURL could not retrieve Post data in
>> RetrieveFM7Data(). A bad URL is the most likely reason. [userinfo] =>
>> [backtrace] => Array ( [0] => Array ( [file] =>
>> /Volumes/dbraid/WebServer/Documents/php8/lga/FX/FX.php [line] => 590
>> [function] => fx_error [class] => fx_error [type] => -> [args] =>  
>> Array (
>> [0] => cURL could not retrieve Post data in RetrieveFM7Data(). A  
>> bad URL is
>> the most likely reason. ) ) [1] => Array ( [file] =>
>> /Volumes/x98ndd/WebServer/Documents/client/FX/FX.php [line] => 1347
>> [function] => retrievefm7data [class] => fx [type] => -> [args] =>  
>> Array (
>> [0] => -findall ) ) [2] => Array ( [file] =>
>> /Volumes/x98ndd/WebServer/Documents/client/FX/FX.php [line] => 1529
>> [function] => executequery [class] => fx [type] => -> [args] =>  
>> Array ( [0]
>> => -findall ) ) [3] => Array ( [file] =>
>> /Volumes/x98ndd/WebServer/Documents/client/FX/FX.php [line] => 1758
>> [function] => fmaction [class] => fx [type] => -> [args] => Array  
>> ( [0] =>
>> -findall [1] => 1 [2] => full [3] => 1 ) ) [4] => Array ( [file] =>
>> /Volumes/x98ndd/WebServer/Documents/client/test.php [line] => 8  
>> [function]
>> => fmfindall [class] => fx [type] => -> [args] => Array ( ) ) )  
>> [callback]
>> => )
>>
>> This client is using SSL now and their problems started when they  
>> switched
>> over; the IP address specified in their server_data file is  
>> "127.0.0.1",
>> port 80; these are the same settings they're using on another web  
>> app, which
>> uses a different database on the same server.
>>
>> So I can't figure out why this isn't working... it's not the code,  
>> since
>> this little query is so simple--is there something else I could  
>> look to for
>> the answer?
>>
>> Thanks,
>>
>>
>> Bob Patin
>> Longterm Solutions
>> bob at longtermsolutions.com
>> 615-333-6858
>> http://www.longtermsolutions.com
>> FileMaker 9 Certified Developer
>> Member of FileMaker Business Alliance and FileMaker TechNet
>>
>>  CONTACT US VIA INSTANT MESSAGING:
>>     AIM or iChat: longterm1954
>>     Yahoo: longterm_solutions
>>     MSN: tech at longtermsolutions.com
>>     ICQ: 159333060
>>
>> --------------------------
>> Contact us for FileMaker hosting and programming for all versions of
>> FileMaker
>> PHP . CDML . Full email services . Free DNS hosting . Colocation .
>> Consulting
>>
>>
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
>>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list

_______________________________________________
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