Search and replace within files with bash

Categories:

find ~/httpdocs -maxdepth 1 -name \*.php -exec perl -pi -w -e "s/\<\/body\>/\<\?php\ include_once\('includes\/footer_inc\.php'\);\ \?\>\<\/body\>/g" {} \;

THANK YOU KYRA!!!