Forum Moderators: coopster

Message Too Old, No Replies

PHP Site Map

         

wfernley

2:08 pm on Jul 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey everyone. :)

I want to be able to have a site map section on my site which would scan my site and display pages - but only in certain directories. I have a few directories which I still want hidden but a few directories I want all the pages displayed.

Is it possible to make a dynamic site map? If so, what security risks could it impose on my site. And mainly, how do I do it?

Thanks :)

Wes

ergophobe

3:46 pm on Jul 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Depending on how things are set up, it may or may not be possible. If there are a set of directories with files in them that mirror your site organization, than it could be done by just reading file names out of the directories.

More importantly, I suspect that a dynamically generated site map would not be *useful*. The only way that I can think of creating a dynamic site map based on reading the file system, would be a list of links that would simply be file names, which doesn't sound very good.

Tom

coopster

4:26 pm on Jul 22, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I remember something like this coming up recently and somebody referred to [phpspider.com...] -- is this is a tool that you might be able to use/modify to meet your needs?

ergophobe

7:48 pm on Jul 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That's pretty cool. I didn't think of just spidering the site.

Tom

coopster

7:55 pm on Jul 22, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



It is pretty cool. I found the reference [webmasterworld.com], it was Timotheos that first posted the information. I haven't used it yet but can see where it would come in handy, especially internally with a few modifications -- one mentioned here -- the ability to tell it to ignore certain directories. Maybe that feature is already in there? I haven't been into the code yet.

ergophobe

8:15 pm on Jul 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



A little more looking...

It appears that all you would need to do is modify the followUrl() method to filter out the directories you don't want spidered.

Tom