how do i get php to print my html page in all one line, so that it is hard for the person to view the source, but that the browser can still read?
Something like...
<?php echo str_replace( "\n", '', file_get_contents( 'somefile.html' ) ); ?>
you might need to replace both carriage returns and new lines
<?php echo str_replace(array("\n", "\r"), '', file_get_contents( 'somefile.html' ) ); ?>
You could also look into HTML encryption.
If you want your HTML etc encyrpted or obfuscated in someway your basically asking someone to break it to make it readable. There is no point in my opinion once something is on the web people are going to view and rip things to shreds.