Re: [PHP] Directory Structure



On Fri, 2006-09-08 at 10:42 +0530, Manoj Singh wrote:
Hello all,

I am developing a site in which i have to show the directory structure of
any server i.e the admin will enter any site name and i have to show the dir
structure of that site name.

Crawl baby, crawl! You need to load a page, grab the link references,
and then crawl each of those links. You will want to make sure you stay
on the same server (don't jump to URLs not matching the initial domain).
So that you don't bog down in recursion hell, I'd maintain a queue of
URLs still to be processed. And as you finish a page, grab the next
page. You are going to run into the problem of loops, in which case you
need a game plan for handling looped links. My suggestion is if the
target link already exists in your queue or processed list, then skip
it. So once you have all the links, just go ahead and split up the paths
into their respective parts and build the directory tree.

Cheers,
Rob.
--
..------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
.



Relevant Pages

  • Re: Idiots Guide No 1 - How to use PuTTY for CrawlSS
    ... As stated in a previous thread and suggested on the Dungeon Crawl ... Crawl Stone Soup on the akrasiac server, otherwise known as 'CAO', ... e) encounter and kill/be killed by other players' ghosts ...   The screen will refresh and you will now be presented with the ...
    (rec.games.roguelike.misc)
  • Idiots Guide No 1 - How to Telnet
    ... As stated in a previous thread and suggested on the Dungeon Crawl ... here is my first 'Idiots Guide'. ... Crawl Sone Soup on the akrasiac server. ... e) encounter and kill/be killed by other players' ghosts ...
    (rec.games.roguelike.misc)
  • Re: MOSS 2007 crawl broken
    ... apparently a bug in MOSS 2007 that means it can't crawl SSL enabled ... the index server can access it and avoid confusing your end users. ... everything worked just fine apart from the crawl service. ... Error in the Site Data Web Service. ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Full Text Indexing not Populating
    ... and have one event ID of 3019 indicating that the crawl has started. ... > How many rows are in the FT-enable SQL Server 2000 table? ... > "Microsoft Search" service to complete a Full Population is ... > Event Source: Microsoft Search ...
    (microsoft.public.sqlserver.fulltext)
  • Re: search indexing never stops
    ... I stopped incremental and full schedules. ... and restarted the server. ... I disabled crawl schedules. ... The address was excluded because of restrictions in the site path ...
    (microsoft.public.sharepoint.portalserver)