naskar wrote:I copied the php.ini file to my Windows System32 folder and the same with php5ts.dll
You should never copy PHP-related files to a system directory (or any other directory outside of the main c:\PHP\ directory)! Move these files back to your c:\PHP\ directory.
Then, make sure you've added the PHP directory to your system's PATH environment variable (instructions here).
After you add the PHP directory to the PATH variable, restart your computer and let us know if that works.
Also, to get PHP to read your php.ini file, you simply need to add a PhpIniDir line in your Apache's httpd.conf file as shown on this manual page: [man]install.windows.apache2[/man]