Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clear a web page/ Hide html code 3

Status
Not open for further replies.

Kennya1

Programmer
Joined
Apr 14, 2002
Messages
15
Location
US
Is there PHP command that will clear a web page after you wrote something to it?

Is there a way to hide html code when someone clicks view/source
 
no. never.

- - picklefish - -
Why is everyone in this forum responding to me as picklefish?
 
PHP -> Pre-Hypertext-Processor is a server side technology. Once the interpreter is finished and the document is sent to the client (browser) no manipulations using PHP are possible.

Hiding the source code would be something at the client side and thus cannot be achieved with PHP. AFAIK there is no way to hide the content of HTML documents.
 
actually PHP means PHP Hypertext Preprocessor :P ... it's kinda recursive
 
Actually afaik PHP means Programmable Hypertext Preprocessor.

And no, although you could use java to disable right click and popups to disable menus, there are still plenty of ways to make html source available like opening urls in textpad or using non-java enabled browsers etc.

If you are worried about people ripping your PHP code, it can't be done, the only thing viisible to the end user is the outputted (is that a word lol) html.

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
While we are all nitpicking the confusing acronym, be sure to pronounce PHP using three distinct letters. I've heard some folks pronounce it as a one-syllable word, sounding much like a muffled fart.

- - picklefish - -
Why is everyone in this forum responding to me as picklefish?
 
Have you ever considered the German pronunciation?
Pa-hah-Pa I'm sorry there is no IPA (Interntional Phonetic Alphabet) font on Tek-Tips, so I can't represent it correctly. But it's worth a try.
I', sorry I started this. The discussion itself is probably becoming redundant, just like the acronym.
 
PHP is certainlly now PHP: Hypertext Preprocessor. Though it was originally PHP/FI which stood for Personal Home Page/Form Interpreter. (
Correctly stated, you can't hide HTML code, because the browser is a client and needs it, hence the client has it, hence they can see it... hence you're out of luck, because no matter how clever you get, they can always just do a simple wget or telnet call on the page and have it.

If you really have content you need displayed with that kind of protection, the only viable solution (though I hate it) that I've ever heard is to turn it into a simple flash site and present it that way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top