note 74315 added to control-structures.while
| From: | dinamik at dinamik dot biz | Date: | Wed, 04 Apr 2007 21:46:22 +0000 |
| Subject: | note 74315 added to control-structures.while | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125099@lists.php.net to get a copy of this message | ||
$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...
----
Server IP: 69.147.83.197
Probable Submitter: 85.98.187.71
----
Manual Page -- http://www.php.net/manual/en/control-structures.while.php
Edit -- https://master.php.net/note/edit/74315
Del: integrated -- https://master.php.net/note/delete/74315/integrated
Del: useless -- https://master.php.net/note/delete/74315/useless
Del: bad code -- https://master.php.net/note/delete/74315/bad+code
Del: spam -- https://master.php.net/note/delete/74315/spam
Del: non-english -- https://master.php.net/note/delete/74315/non-english
Del: in docs -- https://master.php.net/note/delete/74315/in+docs
Del: other reasons-- https://master.php.net/note/delete/74315
Reject -- https://master.php.net/note/reject/74315
Search -- https://master.php.net/manage/user-notes.php