I need to grab the contents of the proc/uptime either via cron ->php or via php directly. I have set my VPS to disable shell_exec as well as proc files. So without changing that config, can i access the proc/uptime contents locally and just store them 1x an hour without having to open up a hole in the firewall?
Or i could grab and store it via root and store it in a less permissioned file and then grab it locally from the less permissioned file.. If i did that how would i copy the contents of proc/uptime 1x an hour over to the other file.?
for example copy uptime (644 permission) -> to new file(666 permission) then pull the data from the new file down to the php level or cron level.
Thanks..
Or i could grab and store it via root and store it in a less permissioned file and then grab it locally from the less permissioned file.. If i did that how would i copy the contents of proc/uptime 1x an hour over to the other file.?
for example copy uptime (644 permission) -> to new file(666 permission) then pull the data from the new file down to the php level or cron level.
Thanks..
Last edited: