[FX.php List] How do I specify https when I instantiate of the FX object?

Bob Patin bob at patin.com
Tue Mar 6 07:49:53 MST 2007


Just include the FX pages like this:

include_once('https://www.server.com/FX/FX.php');
include_once('https://www.server.com/FX/server_data.php');


On Mar 6, 2007, at 12:19 AM, jason f.boldt wrote:

> FX PHP List,
> I'm having trouble getting the class to work with an HTTPS server.  
> I have examined my fx Object and found that it has an attribute for  
> dataURL that is indeed wrong:
>
> [dataURL] => http://webbot:******@localhost:443/fmi/xml/ 
> FMPXMLRESULT.xml?-db=
>
>
> I have obscured the password, but other than that this is what I  
> see in my FX Object when I print it out for debugging. As you can  
> see, the port 443 comes through at the end of localhost: but the  
> URL is for http://
>
> this is clearly wrong (and probably why code is returning     
> [message] => FX: ExecuteQuery XML error: syntax error at line 1 )  
> because I know my server is operating at https having confirmed  
> this in the browser.
>
> Here's my code.... with passwords obscured....
>
> <?php
> $serverIP = 'localhost';
> $webCompanionPort = 443;         // for FM7SA, this should we the  
> web server port
> $dataSourceType = 'FMPro7';
>
> $directqry = new FX($serverIP, $webCompanionPort, $dataSourceType);
> $directqry->SetDBUserPass($fm_dbuser,$fm_dbpass );
> $directqry->SetDBData("****","****", 1);
> $data = $directqry->FMFind();
> $dataObj = $data['data'];
>
> print "<PRE>";
> print_r($directqry);
>
> print "</PRE>";
>
> ?>
>
> How do I specify https when I instantiate of the FX object?
>
> Thanks,
> Jason
>
>
> --
>
> jason f. boldt
> jason_fb at beezwax.net
> beezwax datatools inc
> (510) 835-4483 x 104
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070306/24af0fb5/attachment-0001.html


More information about the FX.php_List mailing list