Custom Component using PHP to read CSV?

I have just put together a small elements webpage that has a custom component that uses PHP to read entries from a CSV file and output it into an HTML table. This is based on code partially generated by Cursor.

I can get it work when I publish it to local website running under MAMP, because I can put the CSV in the website root.

When I preview the site, how do I put a file into the preview website root? Is this possible?

I don’t want to put the CSV file in Resources as I want it to be separate from the Elements publishing.