Jump to content
Server Maintenance This Week. ×

Testing FMPro13 with FX.php and free-standing webpages


This topic is 3723 days old. Please don't post here. Open a new topic instead.

Recommended Posts

We have a free-standing website (not IWP or WebDirect and not WordPress, Drupal etc) which talks to FMPro11 vis FX.php.

 

I need to test that a copy of our website is talking to FMPro13 via a copy of FX.php.

 

We have duplicated all databases and upgraded them to FMPro13.

 

We have duplicated FX.php and pointed it to the new website location and the new database location.

 

We have set up a test domain.

 

We simply want to view the website copy via this test domain and ensure that it is communicating with FMPro 13 via FX.php.

 

However there is a web server inside FMPro13 Server which keeps switching off the external web server. 

 

FX.php for the current website is:

 

<?php
 
/********************************************************************
 * This file is where you set the data related to your server.  In  *
 * order to get these FX.php examples to work on your system, you   *
 * need to set $serverIP to the IP address of your server.  Also,   *
 * be sure to set $webCompanionPort to match the port configured    *
 * for Web Companion (for FileMaker 5/6) or your web server software*
 * (for FileMaker 7 and later.)                                     *
 ********************************************************************/
 
error_reporting(E_ALL);
if (! defined('DEBUG')) {
    define('DEBUG', false);         // set to true to turn debugging on
}
if (! defined('DEBUG_FUZZY')) {
    define('DEBUG_FUZZY', false);   // set to true to activate the fuzzy debugger
}
 
$serverIP = 'gateway.acwa.asn.au';
$webCompanionPort = 80;         // for FM 7, 8, or 9, this should we the web server port
$dataSourceType = 'FMPro9';
$webUN = 'fmsadmin';               // defaults for Book_List in FM7; both should be blank for Book_List in FM5/6
$webPW = 'fmsadmin';
if (strtolower($dataSourceType) == 'fmpro9') {
    $bookListFile = 'Book_List.fp7';
} else {
    $bookListFile = 'Book_List.fp5';
}
$scheme = 'http';               // generally this will be 'http'; 'https' for SSL connections to FileMaker
 
?>
 
For the copy of the website and FMPRo 13 databases, FX.php is as follows:
 
<?php
 
/********************************************************************
 * This file is where you set the data related to your server.  In  *
 * order to get these FX.php examples to work on your system, you   *
 * need to set $serverIP to the IP address of your server.  Also,   *
 * be sure to set $webCompanionPort to match the port configured    *
 * for Web Companion (for FileMaker 5/6) or your web server software*
 * (for FileMaker 7 and later.)                                     *
 ********************************************************************/
 
error_reporting(E_ALL);
if (! defined('DEBUG')) {
    define('DEBUG', false);         // set to true to turn debugging on
}
if (! defined('DEBUG_FUZZY')) {
    define('DEBUG_FUZZY', false);   // set to true to activate the fuzzy debugger
}
 
$serverIP = 'navigator.acwa.asn.au';
$webCompanionPort = 80;         // for FM 7, 8, or 9, this should we the web server port
$dataSourceType = 'FMPro9';
$webUN = 'fmsadmin';               // defaults for Book_List in FM7; both should be blank for Book_List in FM5/6
$webPW = 'fmsadmin';
if (strtolower($dataSourceType) == 'fmpro9') {
    $bookListFile = 'Book_List.fp7';
} else {
    $bookListFile = 'Book_List.fp5';
}
$scheme = 'http';               // generally this will be 'http'; 'https' for SSL connections to FileMaker
 
?>
 
 
The only difference is the $serverIP
 

 

 

Link to comment
Share on other sites

This topic is 3723 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.