dear ,
i am posting a block a code and hopefully, it will some sense.
this code worked fine i.e. deletion process when I list the possible list of file in unsorted manner. since I am using asort array, it is keep falling in on deletion process eventhough it is sorting in alpha i.e. name order..
while(false!==($entry=$d->read()))
{
if($entry{0}==".")continue;
if(substr($entry,-4,3)!=".ws")continue;
$entry=substr($entry,0,-4);
$entries[]=$entry;
}
//this is creating problem and have used ksort as welll but similiar // results. please help
asort($entries);
foreach($entries as $entry)
{
$f=new WSX($entry,"data/".$directory);
echo("<TR>");
$i++;
$checksum=crc32($checksum.$i.$entry);
if($showcheckbox)echo("<TD class='inset'><INPUT TYPE='CHECKBOX' itemname='".$entry."' NAME='{$checkboxtext}_$i' VALUE='true'>");
echo("<TD class='inset'>");
switch(strtolower($f->type))
{-----
}