I am using this outside Wordpress to get access to different Wordpress' tables:
It works perfectly. But is there a higher security risk? Can I be hacked that way if e.g. someone knows the name of the php script?
I am not passing any values to the script. It's just called by cron to create pseudo materialized views out of some very slow MySQL views for statistical purposes.