I need to write a small search engine with spiders and all this stuff.What do you recommend men ASP.NET or PHP ? and what sources should i read in to get the knowledge?
Before you begin writing this monster of a project (by no means will it be small) I'd like to know why you need to write this engine... Is it for an internal project that can't be indexed by other search engines, or what?
If it's a search engine for a site of your own which you have full control of, it's better to index the information on the site as it's added, edited, and removed, to prevent having to use spiders.
If it's for other websites, then the technology that engines such as Google, Yahoo, and Bing have to offer will always be better than what you can come up with in a couple weeks. If it's something that they can index, then I'd suggest looking into their APIs (Bing has some pretty neat ones if you are okay with the results they provide) and use them for crawling and querying whatever you require them to.
If you really need to make your own engine, it's not going to be a small project..