python -m SimpleHTTPServer on one computer on lan and used
wget to download php files from it to another. As far as i see, they seem to be downloaded correctly - i got php sources instead of html layout. Why? Is this because this server doesn't execute php? When i was downloading i was worried that i'll download just html layout results instead of php source...
Yep, a simple server like Python's doesn't execute PHP. Even something like Apache wouldn't execute PHP either, unless you specifically told it to (which involves installing mod_php).
Technically, as far as the web server is concerned, everything is just a downloadable file unless you (the configurator) tell it otherwise.