Forum Moderators: open
As long as the page served up is HTML then there is no reason for a PHP page not to get spidered. Obviously, the page will needs links to it, and preferably you should only have a couple of parameters passed to a script (and try to avoid "id" as one of those parameters). There are many, many threads on this forum about PHP scripts and query parameters.
www.mydomain.tld/myscript.php
www.mydomain.tld/myscript.php?page=home&date=2003
for example should be fine.