Forum Moderators: open
Google seems to crawl PHP files as well as any other type of file, but it can't do it if you are relying on a parameter being passed;)
Google is smart but it doesn't possess ESP.....not yet anyway!
Now to the reply:
I guess you assure that your index.php puts itself in a defined state by setting some default parameters if no parameters are passed?
While watching some of my domains which use .php-extension and passed parameters I got the impression that files with few (one) parameters like index.php?id=1 are spidered without problems while sites with many params like page.php?id=234&ref=23&prodid=4567 don't likely appear in Google.
In general I tend to use (if possible) Apaches's mod_write module to mask php files and parameters into a .html-filename. So out of "page.php?id=123&client=27" comes "page_123_27.html" or something like that.
There are also some rumors about other se's existing besides google and some of them seem to prefer non dynamic-filenames :)
Ad
Think about your navigation to the real records. One page with the ability to access thousands of record is not that logical. Split the resources up. Do a search for Themes, up at the top of this page to see what I mean.
Cheers
The conclusion? If you are using an index.php purely for dynamic links to other content pages then that should not be a problem as the output from your web server will be static. If you are using it to pull 'random' stuff from a database for instance, then only one occurence per pass will probably be registered by the spider, depending upon the values in use by the PHP script at that time.
You wrote:
PHP file returns static info then it can be spidered. If, however, it returns dynamic info then the spidering will be defective
Could you please explain the distiction between static/dynamic info that gets returned by the php script.
If a php script returns a Content-Type header 'text/html' then the body of the HTTP response should contain valid HTML. As far as I know there in only HTML and no such things as static HTML or dynamic HTML. The spider does not care at all how the serverīs response is created as long as it does get created and sent to the spider within the spiderīs timeout limit.
Andreas
I am not intending to use 'static' or 'dynamic' as technical terms to identify differing types of PHP script [I refer to static/dynamic INFO, not HTML]. Rather, I used it as a shorthand (lazy) way of referring to two types of coding methodology.
By 'static' I mean that every time the page is accessed it will return the same data (to a very high degree).
By 'dynamic' I mean that the page contents vary according to the context in which the page is accessed and so, with the spider routine not necessarily knowing what values the page will be called with, there is no guarantee that what the spider sees is what an actual user would see.
Apologies for the lax terminology.