View Single Post
  #1  
Old 01-07-2004, 03:10 PM
  Owl's Avatar 
Owl Owl is offline
 

Advanced Member
  
Join Date: Mar 2003
Location: Sweden
Posts: 92
 

Default php code, direcly into template?

How should i do if i wanted some php code direcly into my template

Code:
<?php $loadavg_array = explode(" ", exec("cat /proc/loadavg")); $loadavg = $loadavg_array[2]; print("Server Load: " . $loadavg . "%"); ?>

i want that under the copyright on all my pages, and also other debug code...
but when i try and input as it is now in copyright.tpl it dun't work as i want it to =)
__________________
-----------------------------------
4.2 rox...

http://www.fivestar.nu | www.nystil.se | www.hidealite.se
Reply With Quote