<?php
    //Error reporting
    error_reporting(1);
    ini_set('display_errors', true );

	// Filemaker API
	include_once ('../phpobjects/common/fmREST.php');

	// Connect to filemaker


$host = 'ks012.nicheit.com.au';
$db = 'KeysoftPetsafe';
$user = 'dataapi';
$pass = '8Wmctwkr!';
$layout = 'All Fields - List Articles';

$fm = new fmREST ($host, $db, $user, $pass, $layout);
$fm -> show_debug = false; //turn this to true or "html" to show automatically. We're manually including debug information with <print_r ($fm->debug_array);>
$fm -> secure = true; //not required - defaults to true
$fm -> fmversion = 19; 


$result = $fm -> getRecords (); 

var_dump($result);
?>