The second part I already have a script for, but I want to define a variable as the contents of that text file. So assuming filetoinclude.txt has only the following "Testing Text", I just want to define variable $var as whatever the text is in the text file. Basically this is what I have for defining:
$MOTD = @include("path/to/filetoinclude.txt");
My php is very shaky and these two pieces are giving me some problems. Thanks in advance for any assistance!
Edit: I suppose I asked this question inappropriately: I googled for the functions in both cases without any luck. If no one wishes to answer the first one because it's technically writing a script, that's perfectly understandable. However, if it's possible to find out how to properly define a variable as the contents of a text file, that would be spectacular.