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 PHP so that you can’t do possibly… and since you can not do. htaccess files there isn’t anything that you can do due to the insufficient server-side language. Geocities is horrible even for your free host.

Okay, I never said which i access to just about any server side. I do think it was a little something on yahoo/geos part.

And also yes, geocities can be bad, but anyone on these planks has helped my family. thanks.

This entry was posted in Web Design and tagged , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *