u dont need to use <?php tags inside array
this should fix ur issue
PHP Code: 
<?php 


$widget_comment_configuration 
= array( 
     
"auto_approve"    => true,  // Automatically approve comments as they are posted? 
    
"do_captcha"    => true// Do we display a simple captcha question to help prevent spam? 
    
"display_avatars"    => false// Do we display gravatars next to comment  

    // overwrite default uri, useful for ?dynamic=pages.  
    // note:  users will be redirected here after posting a comment. 
     
    
"uri"    => "profile.php?id=" urlencode($dnn['id'])
      
); 
include(
"run_script.php"); 

?>