I'm creating a php application that allows the user to install different themes.
Each theme directory must be placed in the "themes" directory.
Each theme must have a file called theme_profile.php which have theme specifications such as the name of theme and etc...
So this theme_profile.php has a bunch of variables wrapped inside an array called $theme, ($theme["title"]="My theme" etc...)
Now I want my application index file to get these variables without simply 'including' the file (which is risky if malicious code is placed in this file).
Is there anything such as get_variables_from_file("file.php")?