Ok guys I'm getting trouble with my php echo command.
All the codes after the first echo command, displaying in browser.
I mean i have problem with my php echo. I tried in several scripts. I'm using wampserver 2.0.
I've given the example of my error. Please solve it ASAP.
<?
function check_perms($path,$perm)
{
clearstatcache();
$configmod = substr(sprintf('%o', fileperms
($path)), -4);
$trcss = (($configmod != $perm) ? "background-
color:#fd7a7a;" : "background-color:#91f587;");
echo "<tr style=".$trcss.">";
echo "<td style=\"border:0px;\">". $path ."</td>";
echo "<td style=\"border:0px;\">$perm</td>";
echo "<td style=\"border:0px;\">
$configmod</td>";
echo "</tr>";
}
?>
<table width=\"100%\" border=\"0\" cellspacing=
\"0\" cellpadding=\"3\" style=\"text-align:center;\">
<tr>
<th style="border:0px;"><b>File
Name</b></th>
<th style="border:0px;"><b>Needed
Chmod</b></th>
<th style="border:0px;"><b>Current
Chmod</b></th>
</tr>
<?php
check_perms("cache","0777");
check_perms("include/keys","0777");
check_perms("backup","0777");
check_perms("uploads","0777");
check_perms("include/template","0777");
check_perms("include/user","0777");
check_perms("img","0777");
check_perms("img/avatars","0777");
?>
</table>
This is the code showing in browser.
"; echo "". $path .""; echo "$perm"; echo "$configmod"; echo ""; } ?>
I'm using wampserver 2.0
PHP version: 5.2.6
Mysql: 5.0.51b
Apache: 2.2.8