I just ‘discovered’ that the developer on my client’s craft website has been migrating his old landing pages to the new setup by cramming the older static pages into the public directory instead of using the CMS.
There are a lot of PHP files there but they are mostly using a PHP mailer setup - not any database queries.
My question is: how dangerous or safe is it to have PHP files in the public directory?