-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxml_update.php
More file actions
31 lines (23 loc) · 777 Bytes
/
Copy pathxml_update.php
File metadata and controls
31 lines (23 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
include_once 'includes/database.php';
echo "Database Included <br>";
$database = new Database();
echo "New Database Connection Created<br>";
$db = $database->getConnection();
echo "Database Connected<br>";
$myfile = fopen('dataRef/ls.xml', 'w') or die("Unable to open file!");
$txt = "<?xml version='1.0' encoding='UTF-8'?>"
. "<pages>";
include_once 'dataRef/ContactUpdate.php';
//echo 'Contact Update Success';
include_once 'dataRef/ScheduleRecurringUpdate.php';
include_once 'dataRef/ResourceUpdate.php';
$txt .= "</pages>";
fwrite($myfile, $txt);
fclose($myfile);
?>