PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Searching a PHP script?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Searching a PHP script?

    I haven't tried it yet, but can the Zoom Search Engine search a PHP script after its run.

    For example, I have a website where there is a script that generates 100 pictures on a web page that are found in a folder, and 100 descriptions underneath those pictures that are found in a .txt file in a folder..

    If I use the Zoom search engine will it be able to locate all those descriptions on the page, and have a link directly to that description? I'd imaging I'd have to use spider mode and just crawl the website itself, and not the .PHP, or .HTML files directly.

  • #2
    Yes, the Spider Mode will index the output of the PHP script. It will index/crawl what an end user would see when they visit the page.

    But in your example, if there's a single page with 100 pictures listed and 100 descriptions, note that this will only count as 1 search result. Although the keyword may match many entries within the same page, it will only consider it as 1 result, and show the top 3 matches on that page.

    If you want results that link to each picture/description pair individually, you should consider having them as different URLs. Note that the one .php script can generate many "pages" if they have different URLs, e.g.

    http://mysite.com/picture.php?id=1
    http://mysite.com/picture.php?id=2
    http://mysite.com/picture.php?id=3
    http://mysite.com/picture.php?id=4

    These would be considered 4 different pages from an end user or spider's point of view. Even though it's one PHP script.

    Let us know if you need more clarification.
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

    Comment

    Working...
    X