Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Testing FMPro13 with FX.php and free-standing webpages

Featured Replies

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
 

 

 

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.