I'm trying to configure this code that outputs a directory.
But I'm having some trouble getting rid of the two first lines it outputs, "." and ".."
Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"e;$dir"e;."e;$file\"e;>&nbsp;&raquo; $file<getting rid of the two first lines it outputs, "." and ".."Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "e;
<tr>
<td><a href=\"e;$dir"e;."e;$file\"e;>&nbsp;&raquo; $file</a></td>
</tr>"e;;
}
}
closedir($handle);
}
?>>> .
>> ..
>&am($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "e;
<tr>
<td><a href=\"e;$dir"e;."e;$file\"e;>&nbsp;&raquo; $file</a></td>
</tr&utputs, "." and ".."
Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "e;."e; || $file != "..") { // for some reason, this has no affect.
echo "e;
<tr>
<td><a href=\"e;$dir"e;."e;$file\"e;>&nbsp;&raquo directory.
But I'm having some trouble getting rid of the two first lines it outputs, "." and ".."Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "e;."e; || $file != "e;.."e;) { // for some reason, this has no affect.
echo "e;
<tr>
<td><a href=\"e;$dir"e;."e;$file\"e;>&nbsp;&raquo; $file</a></td>
</tr>to configure this code that outputs a directory.
But I'm having some trouble getting rid of the two first lines it outputs, "." and ".."Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "e;."e; || $file != "e;.."e;) { // for some reason, this has no affect.
echo "e;
<tr>
<td><a href=\"e;$dir"e;."e;$file\"e;>&nbsp;&raquo; $file</a></td>
</tr>"e;;
}
}
to configure this code that outputs a directory.
But I'm having some trouble getting rid of the two first lines it outputs, "." and ".."Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "e;."e; || $file != "e;.."e;) { // for some reason, this has no affect.
echo "e;
<tr>
<td><a href=\"e;$dir"e;."e;$file\"e;>&nbsp;&raquo; $file</a></td>
</tr>"e;;
}
}
closedir($handle);
}
?>[/php:1:591f the two first lines it outputs, "." and ".."Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>>> .
>> ..
>> file01.jpg
>> file02.exe
Any suggestions on how to fix this? getting rid of the "." and ".."?
Thanks.tputs, "." and ".."
Code: Select all
<?
$dir = "e;../files/"e;;
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "e;
<tr>
<td><a href=\"e;$dir"e;."e;$file\"e;>&nbsp;&amcode that outputs a directory.
But I'm having some trouble getting rid of the two first lines it outputs, "." and ".."Code: Select all
<?
$dir = "e;../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "e;."e; || $file != "e;.."e;) { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a>&ammp;quote;." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>>> .
>> ..
>> file01.jpg
>> file02.exe
Any suggestions on how to fix this? getting rid of the "." and ".."?
Thanks.tory.
But I'm having some trouble getting rid of the two first lines it outputs, "." and ".."
Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>>> .
>> ..
>> file01.jpg
>> file02.exe
Any suggestions on how to fix this? getting rid of the "." and ".."?
Thanks. if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>
This still outputs:
>> .
>> ..
>> file01.jpg
>> file02.exe
Any suggestions on how to fix this? getting rid of the "." and ".."?
Thanks.
Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>>> .
>> ..
&ato configure this code that outputs a directory.
But I'm having some trouble getting rid of the two first lines it outputs, "." and ".."
Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>>> .
>> ..
>> file01.jpg
>> file02.exe
Any suggestions on how to fix this? getting rid of the "." and ".."?
Thanks.m having some trouble getting rid of the two first lines it outputs, "." and ".."
Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>>> .
>> ..
>> file01.jpg
>> file02.exe
Any suggestions on how to fix this? getting rid of tes/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>
This still outputs:
>> .
>> ..
>> file01.jpg
>> file02.exe
Any suggestions on how to fix this? getting rid of the "." and ".."?
Thanks.to configure this code that outputs a directory.
But I'm having some trouble getting rid of the two first lines it outputs, "." and ".."
Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "e;."e; || $file != "e;.."e;) { // for some reason, this has no affect.
echo "e;
<tr>
<td><a href=\"e;$dir"e;."e;$file\"e;> » $file&amutputs a directory.
But I'm having some trouble getting rid of the two first lines it outputs, "." and ".."Code: Select all
<?
$dir = "../files/"e;;
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "e;."e; || $file != "e;.."e;) { // for some reason, this has no affect.
echo "e;
<tr>
<td><a href=\"e;$dir"e;."e;$file\"e;>&nbsp;&raquo; $file</a></td>
</tr>"e;;
}
}
closedir($handle);
}
?>>> .
>> ..
>> file01.jpg
the two first lines it outputs, "." and ".."
Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>>> .
>> ..
>> filerst lines it outputs, "." and ".."
Code: Select all
<?
$dir = "e;../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "e;."e; || $file != "e;.."e;) { // for some reason, this has no affect.
echo "e;
<tr>
<td><a href=\"e;$dir"e;."e;$file\"e;>&nbsp;&raquo; $file</a></td>
</tr&ato configure this code that outputs a directory.
But I'm having some trouble getting rid of the two first lines it outputs, "." and ".."Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "e;."e; || $file != "e;.."e;) { // for some reason, this has no affect.
echo "e;
<tr>
<td><a href=\"e;$dir"e;."e;$file\"e;>&nbsp;&raquo; $file</a></td>
</tr>"e;;
}
}
closedir($handle);
}
?>>> .
>> ..
>> file01.jpg
&
Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>>> .
>> ..
>> file01.jpg
>> file02.exe
Any suggestions on how to fix this? getting rid of the "." and ".."?
Thanks.($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"e;$dir"e;."e;$file\"e;>&nbsp;&raquo; $file</a></td>
</tr>"e;;
}
}
closedir($handle);
}
?>
This still outputs:
>> .
>> ..
>> file01.jpg
>> fifor some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$ctory.
But I'm having some trouble getting rid of the two first lines it outputs, "." and ".."
Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>>> .
>> ..
>> file01.jpg
>> file02.exe
Any suggestions on how to fix this? getting rid of the "." and ".."?
Thanks.;
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "e;."e; || $file != "e;.."e;) { // for some reason, this has no affect.
echo "e;
<tr>
<td><a href=\"e;$dir"e;."e;$file\"e;>&nbsp;&raquo; $file</a></td>
</tr>"e;;
}
}
closedir($handle);
}
?puts a directory.
But I'm having some trouble getting rid of the two first lines it outputs, "." and ".."
Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>>> .
>> ..
>> file01.jpg
>> file02.exe
Any suggestions on how to fix this? getting rid of the "." and ".."?
Thanks.s, "." and ".."
Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>>> .
>> ..
>&outputs a directory.
But I'm having some trouble getting rid of the two first lines it outputs, "." and ".."
Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>>> .
>> ..
>> file01.jpg
>> file02.exe
Any suggestions on how to fix this? getting rid of the "." and to configure this code that outputs a directory.
But I'm having some trouble getting rid of the two first lines it outputs, "." and ".."
Code: Select all
<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>>> .
>> ..
>> file01.jpg
>> file02.exe
Any suggestions on how to fix this? getting rid of the "." and ".."?
Thanks.te;;
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>
This still outputs:
>> .
>> ..
>> file01.jpg
>> file02.exe
Any suggestions on how to fix this? getting rid of the "." and ".."?
Thanks.e(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."e;$file\"e;&am<?
$dir = "../files/";
if($handle = opendir($dir)) {
while(false !== ($file = readdir($handle))) {
if($file != "." || $file != "..") { // for some reason, this has no affect.
echo "
<tr>
<td><a href=\"$dir"."$file\"> » $file</a></td>
</tr>";
}
}
closedir($handle);
}
?>
This still outputs:
>> .
>> ..
>> file01.jpg
>> file02.exe
Any suggestions on how to fix this? getting rid of the "." and ".."?
Thanks.