OK, now here's a giggle; I like ssi includes. If I put the script in as
an ssi include, will it still work? The functionality would also be
useful on a page besides the default landing page, such as a
404error.html page, or a thank you page.
--
end
Very Truly yours,
- Kirk B
A good point, but in this application there WILL be AT LEAST 1
legitimate directory at all times, or else the script would not be used,
so this ought not be a problem.
My problem is that I understand the basic functions to implement, but
have not yet aquired sufficient command of php to implem
Now Now, fight nice. We don need no stinkin' @$^*$^(! woids here. :-P
Steve Staples wrote:
On Thu, 2010-12-02 at 10:07 -0500, Daniel P. Brown wrote:
On Wed, Dec 1, 2010 at 23:13, Kirk Bailey wrote:
[snip!]
Can this be improved to exclude anything with a '.' or a '-' in it's name?
Th
my current code is as follows:
*
'.$d.''.PHP_EOL;
}
}
?>
*
The page containing this is at this url:
http://www.howlermonkey.net/dirlisting.php
I believe this will be a starting point for the functionality I am
looking for- an automatic menu of areas in a website one may g
From: Kirk Bailey
> OK, now here's a giggle; I like ssi includes. If I put the script
> in as an ssi include, will it still work?
If you're using Apache, and you do
...the PHP in something.php will execute and produce output, but
something.php will not have any access to $_GET or $_POST or $_S
Ok, let's kick this around.
iterating an array(?; 1 dimensional listing of things) in php, I am
creating a list of direcoties. I want to open and read in a file in each
directory with a standard name, which contains a 1 line description of
the directory and it's purpose.
Now, here's the exis
The hound barks, but does not yet properly hunt, and we need to bring
home the bacon.
OK, here is the current code:
'.include('./'.$d.'/desc.txt')
;#.''.PHP_EOL;
}
}
?>
the url again, to view the results, is
http://www.howlermonkey.net/dirlisting.php and is live right now. Th
On Dec 4, 2010, at 2:15 PM, Kirk Bailey wrote:
The hound barks, but does not yet properly hunt, and we need to
bring home the bacon.
OK, here is the current code:
'.include('./'.$d.'/desc.txt')
;#.''.PHP_EOL;
}
}
?>
the url again, to view the results, is http://www.howlermonkey
the code is now:
';
echo include($d.'/desc.txt' );
echo ''.PHP_EOL;
}
}
?>
And it works!
BUT!
Where is the "1" coming from?!?
Please inspect the page and see what I mean. This is not in the code,
and it's not in the source file. Link:
http://www.howlermon
On 4 December 2010 20:58, Kirk Bailey wrote:
> the code is now:
>
> are NOT to be listed!
> $excludes[] = 'images';
> $excludes[] = 'cgi-bin';
> $excludes[] = 'vti_cnf';
> $excludes[] = 'private';
> $excludes[] = 'thumbnail';
>
> $ls = scandir(dirname(__FILE__));
> foreach ($ls
On Sat, Dec 4, 2010 at 15:58, Kirk Bailey wrote:
>
> And it works!
> BUT!
> Where is the "1" coming from?!?
No need to see the page. You're echo'ing an include. No need to
do that; including the file is enough, and that's what's working.
Adding the echo makes it print the status retur
On Dec 4, 2010, at 2:58 PM, Kirk Bailey wrote:
the code is now:
';
echo include($d.'/desc.txt' );
There should be no echo here
echo ''.PHP_EOL;
}
}
?>
And it works!
BUT!
Where is the "1" coming from?!?
Please inspect the page and see what I mean. This is no
12 matches
Mail list logo