This is probably one of those typical newbie questions, and I hate when there's something I'm a newbie at, but I just have to ask..

How will search engines treat PHP scripts? Cause I'm thinking say I have a PHP script that serves all the articles at my site. With this being a lot of articles, naturally I would want the search engines to spider them all uniquely. So I'm wondering if a search engine that is told spider an URL like mysite.com/article.php?id=1 will spider the content of article 1 or the content of the PHP script. Likewise, will it recognize the different content in article 2 located at mysite.com/article.php?id=2 and so on?

Thanks in advance !