Tag Archives: Bordercolor

seeing files in a dir

Instruction online my geocity days to weeks, in some situations I possibly could bring up an index of all files at my server, throough web browser. The way protected Code: < php system(‘ls -la /path/to/your/dir/’); > or Code: < php $handle=opendir(‘. ‘); echo" < dining room table width=’260′ border=’1′ cellspacing=’0′ cellpadding=’0′ bordercolor=’#000000′ cellspacing=’0′ cellpadding=’0′ align=’center’ bordercolor=’#000000′ bgcolor=’FFFFFF’ name=’mid’ height=’8′> < tr cellpadding=’0′ border=’1′ bordercolor=’#000000′ bgcolor=’999999′> < div align=’center’> < font face=’verdana’ size=’1’color=’#000000′> < b> information in directory< /b> < /tr> "; when (false! ==($file = readdir($handle))) when ($file! = ". " & & $file! = ".. " & & $file! = " index chart. phtml" ) $filename = str_replace(" _", " ", $file); $fTime = filemtime($file); $today = getdate($fTime); $month = $today’month’; $mday = $today’mday’; $year = $today’year’; $filename = str_replace(". pdf", " ", $filename); $filename = str_replace(". doc", " ", $filename); echo " < tr bgcolor=’cccccc’> < td> < b> < font face=’verdana’ size=’1′> < img src=’folder. bmp’> < a new href=$file target=_blank> $filename< /a> < /td> < /b> < td> < font size=1> $month $mday, $year < /font> < /font> < /td> < /tr> "; closedir($handle); > second example for http: //www. ecarbon. net sale Geocities doesn’t support … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment