-
Notifications
You must be signed in to change notification settings - Fork 1
/
updatespxd1.php
38 lines (33 loc) · 1.72 KB
/
updatespxd1.php
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
32
33
34
35
36
37
38
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Cloud S&P 500 Signals</title>
<link rel="shortcut icon" href="icon/cloud-icon.png">
<!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="js/cloudsignals.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/purecss@2.1.0/build/pure-min.css" integrity="sha384-yHIFVG6ClnONEA5yB5DJXfW2/KC173DIQrYoZMEtBvGzmf0PKiGyNEqe9N6BNDBH" crossorigin="anonymous">
<link rel="stylesheet" href="font/sansation/sansation_light/stylesheet.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="font/raleway/stylesheet.css" type="text/css" charset="utf-8" />-->
<link rel='stylesheet' href='css/style_cloudservice.css'>
</head>
<body>
<?php
// ini_set('max_execution_time', '600'); //300 seconds = 5 minutes
// set_time_limit(600);
$__timeStart = microtime(true);
require "class/CloudSignalMain.php";
define('DATA_PATH','data/spx500/');
define('XML_PATH_STOCK_LIST','xml/SPX500.xml');
define('DEBUG_MODE',true);
//date_default_timezone_set('Europe/London');//for UK market only
ini_set('max_execution_time', 300); //300 seconds = 5 minutes
$_cloudSignalMain = new CloudSignalMain("Cloud Signals","S&P 500 shares");
$_cloudSignalMain->init(CloudUtility::UPDATE_MODE_DAILY_SPX500_PART1_FROM_SCRATCH);
$__timeFinish = microtime(true);
$__timeSpent = round($__timeFinish - $__timeStart, 1);
echo "<h2>Programme Duration: $__timeSpent seconds\n</h2>";
?>
</body>
</html>