I'm trying to use php's output buffering functions. But I haven't really succeeded yet. I have a txt-file with the contents:
I'm trying to capture what's in here then assign a value to $var and print it. This is my code so far.
$var = "It works!";
$test = ob_get_contents ();
It prints out (viewing source code):
So the variable $var hasn't gotten his value.
Thanks in advance.