Skip to content

Instantly share code, notes, and snippets.

@ano
Last active August 3, 2018 05:28
Show Gist options
  • Save ano/9f23a15402df6a0d4437a298781166e7 to your computer and use it in GitHub Desktop.
Save ano/9f23a15402df6a0d4437a298781166e7 to your computer and use it in GitHub Desktop.
Set PHPMaker config file to Machforms config file
<?php
/**
* MACHFORM INTEGRATION
*/
define("MACHFORM_BASE", "../../");
require_once(MACHFORM_BASE . "config.php");
//Find and Replace the $EW_CONN["DB"] variable with this
$EW_CONN["DB"] = array("conn" => NULL, "id" => "DB", "type" => "MYSQL", "host" => MF_DB_HOST, "port" => 3306, "user" => MF_DB_USER, "pass" => MF_DB_PASSWORD, "db" => MF_DB_NAME, "qs" => "`", "qe" => "`");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment