Open a file and print all of its contents? I'm fairly inexperienced with PHP, want to switch over from using .cgi extension... What I have setup now is a design.cgi file and you just add a ending to it like design.cgi?demos, but there are some problems and I was told PHP will do the same thing more easily, so if you could help me out that would be great.
$str = fread(fopen("myfile.txt", "r"), filesize("myfile.txt"));
echo $str;
Hope this helps.
Greetz,
Vincent Driessen Venlo, The Netherlands