what i mean to say is iam using dreamviewer8 so i want to know to save the php file in it?
A PHP file is just a text file with a .php extension (though this technically could be anything). It's only when you put it through the PHP interpreter on your web server that it behaves differently to, say, a plain HTML file.