1<?php
2include('log test.php');
3$output = shell_exec('php filename.php');
4echo "<pre>$output</pre>";
5
6$ch = curl_init();
7curl_setopt($ch, CURLOPT_URL, "http://localhost/Ia2/Watering/tests/log%20test.php"); //URL of the file
8curl_setopt($ch, CURLOPT_HEADER, 0);
9curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
10
11$output = curl_exec($ch);
12curl_close($ch);
13echo "<pre>$output</pre>";
14?>