Thanks for answering the question.
There is a mistake in my question and let me explain now my problem more clearly.
I did'nt get the PHP code getting displayed instead the executed HTML code.
I'm trying out a webmail with index.php as the index page.
When I open a new browser and connect to localhost i get 3 requests on my webserver as(simplified)
1)GET / User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705) Host: localhost
2)GET /themes/default/webmail.css User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705) Host: localhost
3)GET /images/logo.gif User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705) Host: localhost
when i do refresh the same page i get only the first request as
GET / User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705) Host: localhost
So the web server does executes the index php page and sends the html code to the browser.,since the webserver doesnt get any requests after this the html code is getting displayed on the browser.
Please help...
Thanks,
Suresh.