hi.. I have a function like this (taken from adsrotator plugin for wordpress):

Code:
<?php
function getads($ad = '') {
  $ad = trim($ad);
  if(strlen($ad) > 0) {
    $ad = ABSPATH . "ads/" . $ad . '.txt';
    if(file_exists($ad)) {
      $ads = file($ad);
      return $ads[rand(0, sizeof($ads)-1)];
    }
  }
}

$adds=getads('ad_160x600');
include ABSPATH . "ads/" . trim($adds);
?>
now when I try to use the function again it always give me this error:
Code:
Cannot redeclare getads() (previously declared in......
from what I read on php.net, it's because of the include function. How can I fix this?

Thanks