Seperating web Map from php code