I’m also interested in this answer!
since I was having this problem with every .php file in the /wp-admin/ section, adding code to the file was a non-solution for me. I was able to to solve the problem with the .htaccess file – details at: http://cstarsys.com/blog/2007/12/12/fixing-the-php-allowed-memory-size-exchausted-fatal-error-in-wordpress/