'Displaying php script output via script?
really lost on how to get this to work, I'm quite "techy" and struggling to find how to fix this via the googles.
I have a script status.php it outputs a number and is run by a cronjob, I then would like to show this output within HTML, I've tried so many things and none work, some work but have no CSS styling, I cam across a site which has similar uses, but it used a script
<script>
loadRankTable("xml/AllTopTen.php", "#rankTable");
loadPKTable("xml/PkRank.php", "#pkTable");
$.get('Status/status.php', function(response) {
if (response) {
var gates = response.split('|');
var usercount = gates[3].split('/')[8];
$('#mir-usercount').html(usercount);
}
})
</script>
it had other options and the only thing I need is for it to display the number (usercount) that is outputted by this PHP file, the file outputs 1 word of text. but I'm struggling, I'm unsure if this is even the full script used. any help would be greatly appreciated
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
