a=docs/ b=file
what would be the code to use include to show the file docs/file.txt
echo file_get_contents($a.$b.'.txt');
The dots being string concatenation creating the string "docs/file.txt"
mofo dot
You could also just do
readfile($a.$b.'.txt');
as it throws the file straight to output.