[php]

You need a webserver with PHP enabled, or run it trough PHP manually using "php.exe yourpage.php" - which ofcourse only works if you included php.exe into your systems path and are in the base directory of the php file.

If you didn't put anything IN the $cpu variable it won't print anything ofcourse since PHP doesn't fill stuff like that in automatically. Its ofcourse a different mater for a few superglobals, which you can try by doing this for example:
PHP:
print_r($_SERVER);
 
my webserver supports php because everything im using is php
and it still doesnt works :punch:

it just will show the text print_r($cpu);

thanks for replying
 
make sure there are php tags.

PHP:
<?php
...	
?>

Also, doesn't echo and print mean the same thing?
e.i.
PHP:
<?php
        echo $cpu;
?>
 
Back