Not reading links created with php script
« on: April 26, 2011, 09:18:32 PM »
I have a page that uses php script to create a list of links from files in a folder.  When a visitor opens the page the list of links automatically generates for the user to see.  The generator is not adding those links to the sitemap. 

The visitor can see and click the links.  Cant the generator read the page with links created with a php script?
Re: Not reading links created with php script
« Reply #2 on: April 27, 2011, 04:30:42 PM »
Yes, I was able to make a change with the PHP code I am using on the page with links.  Now the generator is picking up the urls.  I think it’s because I added a <br> in the PHP code.  The time it takes to place the code on the page is acceptable. 

Now whenever I drop a new page in a folder the content page automatically picks it up for crawling.

1.   I created a “Site Content” page
2.   Changed the extension from .html to .php
3.   Added the code below to list all the urls from a folder on the page

<?php
if ($handle = opendir("budget-database")) {
    while (false !== ($file = readdir($handle))) {
        if ($file != "." && $file != "..") {
            echo "<a href=\"[ External links are visible to forum administrators only ]...com/budget-database/".$file."\">".$file."</a><br>";
        }
    }
    closedir($handle);
}
?>

I appreciate your help!