OK so I've had this idea which might or might not work but here goes!

I've seen some posts about the dashboard that Shopify provide for the site owners (https://www.shopify.com/partners/blo...tner-dashboard) and it got me thinking about building something similar for my site, like a quick site overview, outstanding orders, stock levels, visitor stats etc.

My plan.
1:) Create a cron job to build json files with required data, save these files above the public directory on my server.

2:) Create a new folder at the public level with a php file (lets call it dashboard.php) to get the json files when requested (using curl).
This php file is secured with a api key/login system.
The folder is secured by htaccess so only the dashboard.php file is executable.

3:) In my office I have a web server on a Raspberrypi, this has a script which gets the data from the zen cart and displays the information on a dashboard. The idea is as the pi is on my internal network I can look up the data via, my phone, tablet and have it on a screen in the office.


Now, I've got a vagrant test server and I have this working but I worried about keeping the data secure, can anyone give me any pointers that I might have missed?