Okay Ive been trying to do a project for myself to learn PHP and its been HELL all the way.
I have a script that When run it get 2 errors.
Warning: Missing argument 1 for echovalues() in C:\Inetpub\wwwroot\Kubemail\WWW\asp\edit1.php on line 8
AND
Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\Kubemail\WWW\asp\edit1.php on line 20
COULD ANYONE PLEASE help me sort out the Syntax problem in this? Thanks
Code pasted below
<?
$Reg = new COM("IISSample.RegistryAccess");
$Aliases="HKEY_LOCAL_MACHINE\SOFTWARE\Ipswitch\Imail\Domains\kubemail.com\Users_aliases";
?>
<? function EchoValues($strKeyName){
echo "<h1>Get values of ".$strKeyName."</h1>";
$reg->Values[$strKeyName];
echo "<b># subkeys = ".$Values.$Count."</b><br>";
echo "<table>Values Collection";
echo "<TR><TH align=left>Name</TH>".
"<TH align=left>Value</TH></TR>";
foreach ( $Values as $k);
{
echo "<TR><TD>".$k.$Name."</TD>".
"<TD>".$k.$Value."</TD></TR>";
}
}
?>
<? EchoValues();$Aliases; ?>