both are important for SEO - the filename in the URL should match up with your title tag. all filenames should be unique. for example
www.coolsite.com/kids-toys/blue-schwinn-bike
not
www.coolsite.com/kids-toys/blue-schwinn-bike/index.php
this latter example would cause you to wind up with Google seeing every page with the same filename index.php