[insert_php]
echo “Creating database object…”;

$db = new vwSunbeltDB();
//$db->dropDatabaseExtentions();
//$db->createDatabaseExtentions();
//$db->deleteListingsFromDb();

echo “importing…”;
try
{
$db->importListingsFromCrm();
}
catch(Exception $exception)
{
echo ‘Exception Message: ‘ . $exception->getMessage().PHP_EOL;
echo ‘Exception Trace: ‘ . $exception->getTraceAsString().PHP_EOL;
}

wp_mail( ‘[email protected]’, ‘Listings Reloaded’, ‘The message’ );
echo “Done”;
[/insert_php]