note 74315 deleted from control-structures.while by felipe
| From: | felipe@php.net | Date: | Tue, 29 Jan 2008 11:17:57 +0000 |
| Subject: | note 74315 deleted from control-structures.while by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-135507@lists.php.net to get a copy of this message | ||
Note Submitter: dinamik at dinamik dot biz
----
$files = filelist("./",1,0);
foreach ($files as $list) {
rename("".$list['path']."/".$list['name']."",
"".$list['path']."/".formatName($list['name'])."");
echo "Directory: " . $list['dir'] . " => Level: " .
$list['level'] . " => Name: " . $list['name'] . " => Path:
" . $list['path'] ."<br>";
$sayfa="<HTML>\n";
$sayfa.="<HEAD>\n";
$sayfa.="<TITLE>$weblink</TITLE>\n";
$sayfa.="<meta http-equiv=\"content-type\" content=\"text/html;
charset=ISO-8859-9\">\n";
$sayfa.="<meta http-equiv=\"Content-Type\" content=\"text/html;
charset=windows-1254\">\n";
$sayfa.="</HEAD>\n";
$sayfa.="<BODY>\n";
while( list($list['name'], $list['path']) = @each($list['level']) )
{
$sayfa.=" <b><a
href=\"$list[path]$list[name]\">$list[name]</a></b><br>\n";
}
$sayfa.="</BODY>\n";
$sayfa.="</HTML>\n";
$fp=@fopen(''.$list['path'].'/index.html','w');
$ok=@fwrite($fp,$sayfa);
@fclose($fp);
@chmod(''.$list['path'].'/index.html',0644);
}
but it has got some problem for "while"..
i could not do that...