yep! if you say ouputted, you are probably accessing the dot-php file responsible for generating your html. well, reading a php file in your server gives you the PHP scripts rather than the executed result of the script. if you wish, you may re-write your script to result a flat html file rather than grabbing the outputted html, OR you may grab the outputted html as a client (from the concept of "client-server" applications/scripts).
🙂