A set of tools used with the Torque app for Android to store OBD2 data in MySQL, view GPS data from Torque on a map in real time using the Google Maps JavaScript API, plot OBD2 data in time series charts, and export the data to CSV or JSON.
The issue #3 was related to PHP short tags (<? instead of <?php).
Since there are good reasons to disable the short tags (e.g. XML processing instructions are using <? syntax), you should avoid using them. The torque.php file is fixed but short tags still exist in map.php
I suggest changing the following lines:
var xlat = <?=$centerlat?>;
var xlng = <?=$centerlong?>;
var path = [<?=$imapdata?>];
to
var xlat = <?php echo $centerlat; ?>;
var xlng = <?php echo $centerlong; ?>;
var path = [<?php echo $imapdata; ?>];
The issue #3 was related to PHP short tags (<? instead of <?php).
Since there are good reasons to disable the short tags (e.g. XML processing instructions are using <? syntax), you should avoid using them. The torque.php file is fixed but short tags still exist in map.php
I suggest changing the following lines: var xlat = <?=$centerlat?>; var xlng = <?=$centerlong?>; var path = [<?=$imapdata?>]; to var xlat = <?php echo $centerlat; ?>; var xlng = <?php echo $centerlong; ?>; var path = [<?php echo $imapdata; ?>];