php
Posted: Wed May 27, 2009 9:06 am
I am "getting started" with php. I am trying to echo the output of a function. I have not gotten it to work yet. Here is how I am going about it:
So, who can tell the noob why he is failing?
Code: Select all
<html><body>
<?php echo "testing echo output" ?> //this works and shows up in the browser
<?php
$currdir = dirname($SERVER['PHP_SELF']);
echo $currdir; //this does not work.
?>
</body></html>
So, who can tell the noob why he is failing?