FILES=$(find public_html -type f -name '*.php')
IMPORTANT: Note the single quotes around the *.php to prevent shell expansion of the *.
*.php
*
FILES=`find public_html -type d`
$FILES will now be a list of every single directory inside public_html.