[FX.php List] Problem with connectivity of PHP and filemaker7
Gjermund Gusland Thorsen
ggt667 at gmail.com
Tue Nov 23 15:36:15 MST 2004
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
>
>
>
More information about the FX.php_List
mailing list