Actually the problem was with the files only. Thanks Bill, I had figured it out earlier myself but couldn't post here. I am working on a remote server, and the files were not copied correctly on the remote server. That's why the problem was there.
Thanks and sorry for the inconvenience.