Ok, very simple. I just want to split the output of uptime into several text files so I can add in some line breaks on my site. The idea is to show current uptime local time etc. for the server but the formatting is naff, just a single line of text. I have the following cronjob
Code:
uptime > /webstuff/uptime.txt
and a php file, using
Code:
<?php require("uptime.txt"); ?></p>
Apart from breaking apart the text file - how would i do that? - and adding in <br> between the require commands how can i auto format this?
Any ideas appreciated. Thanks J.