[FX.php List] Problem with connectivity of PHP and filemaker7

Baard Belsaas fmweb at belsaas.no
Wed Nov 24 01:20:10 MST 2004


But how can you change the portnumber for FM7SA?

> Don't run webserver and FileMaker7SA on the same port!
>
> have a nice day
>
>
> On Tue, 23 Nov 2004 10:52:03 +0530, Anchal Jain
> <anchalj at mindfiresolutions.com> wrote:
>>
>> Hi All,
>>     I am using PHP 4.3.9 and filemaker 7 on my local machine(Windows
>> XP).I
>> am not able to get connectivity of PHP with Filemaker 7 .I am using the
>> following code to achieve this :-
>>
>> <?php
>> $serverIP = '127.0.0.1';
>> $webCompanionPort = '80';
>> $scheme = 'http';
>> if( !isset($_SERVER['PATH_TRANSLATED']) )
>> {
>> if(isset($_SERVER['SCRIPT_FILENAME']))
>>
>>  $_SERVER['PATH_TRANSLATED'] =$_SERVER['SCRIPT_FILENAME'];
>>
>> else
>>  $_SERVER['PATH_TRANSLATED'] =realpath('install.php');
>> }
>>
>> if (! isset($_SERVER['DOCUMENT_ROOT'])) {
>>     global $DOCUMENT_ROOT;
>>     global $HTTP_SERVER_VARS;
>>
>>     $_SERVER['DOCUMENT_ROOT'] = str_replace(str_replace('\\\\', '/',
>> $_SERVER['PHP_SELF']), '', str_replace('\\\\', '/',
>> $_SERVER['PATH_TRANSLATED'])) . '/';
>>     $DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
>>     }
>>
>>
>> include_once("/inetpub/wwwroot/FX7/FX.php");
>> include_once("/inetpub/wwwroot/FX7/server_data.php");
>>
>> $serverIPAddress = '127.0.0.1';
>> $currentDatabase = 'Tester.fp7';
>> $InstanceName = new FX($serverIPAddress,'80','FMPro7');
>> $InstanceName->SetDBData($currentDatabase);
>> $ReturnedData = $InstanceName->FMLayoutNames();
>> echo "<b>Layouts in $currentDatabase </b><br />\n";
>> foreach ($ReturnedData['data'] as $value) {
>> echo $value['LAYOUT_NAME'][0];
>> }
>> ?>
>>
>> Any suggestions are appreciated.
>> Regards,
>> Anchal
>> _______________________________________________
>> 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