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

Anchal Jain anchalj at mindfiresolutions.com
Mon Nov 22 22:22:03 MST 2004


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20041123/fc71090d/attachment.html


More information about the FX.php_List mailing list