I need to grab some variables from a php file without including the rest of the content - is this possible? Example: I'd like to be able to get $var1 from myvars.php without having the echo displayed on my page. Can this be done? myvars.php: $var1 = "abc"; echo "blablabla";
May be it will be a good idea to store these variables in config file, and then parse it to an array by parse_ini_file function?
That or in sessions... or in a database... killing the output by buffering is a massive waste of memory and processor time.