Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
linux-noob.com server
#6

past of few days i was total bored. and play with my apache and php. i made uptime and kernel info on my site. it's personal. odyssey.ath.cx use PHP

 

Show Kernel only (E.G)



Code:
<?php
$kernel = exec("uname -r");
print "kernel: $kernel";
?>




 

the command in php - exec is execute from the command as you use the same commands on console such as, uptime, uname -a, ls -l etc..

Reply


Messages In This Thread
linux-noob.com server - by anyweb - 2004-01-23, 08:39 AM
linux-noob.com server - by kZo - 2004-01-24, 01:36 PM
linux-noob.com server - by anyweb - 2004-01-24, 02:04 PM
linux-noob.com server - by deraj - 2004-01-25, 07:20 PM
linux-noob.com server - by anyweb - 2004-01-26, 08:37 AM
linux-noob.com server - by Oroshi - 2004-01-26, 10:13 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)