What is the difference between client-side and server-side programming?
I have this code:
var foo = 'bar';
file_put_contents('foo.txt', ' + foo + ');
var baz = <?php echo 42; ?>;
Why does this not write "bar" into my text file, but alerts "42"?