WordPress 3.5 Plugin Update Errors

I have a blog installed under xampp, and I am using windows 7 system. Today I updated my wordpress based blog to wordpress 3.5. There are some errors, all about wordpress plug-in.

I met the following errors:

Updating Plugin Akismet

Downloading update from http://downloads.wordpress.org/plugin/akismet.2.5.7.zip…

An error occurred while updating Akismet: Download failed. Could not open handle for fopen() to http://downloads.wordpress.org/plugin/akismet.2.5.7.zip.
—————————————————————
Updating Plugin WP htaccess Control
Downloading update from http://downloads.wordpress.org/plugin/wp-htaccess-control.3.3.zip…

An error occurred while updating WP htaccess Control: Download failed. Could not open handle for fopen() to http://downloads.wordpress.org/plugin/wp-htaccess-control.3.3.zip.
————————————————————
Updating Plugin WP No Category Base

Downloading update from http://downloads.wordpress.org/plugin/wp-no-category-base.zip…

An error occurred while updating WP No Category Base: Download failed. Could not open handle for fopen() to http://downloads.wordpress.org/plugin/wp-no-category-base.zip.

Very simple to deal with this issue, just added the follow code to the wp-config.php file:

define( 'WP_TEMP_DIR', ABSPATH . 'wp-content/' );

done.
Easy or not!!!

King Php Science Welcome, you are from: 54.158.25.146