Click to See Complete Forum and Search --> : Hiding part of code


Extreme
11-09-2003, 10:17 PM
Let's say I have a HTML file and I putt in a piece of PHP code.. For example
<?php include('some_file.php'); ?>
Now, if someone would look at the source of my HTML file, how would I make it so he doesn't see the php code line???

piertiong
11-10-2003, 12:44 AM
after the server has processed the coding, the source won't show the php coding, instead it shows the created code from your included php file.

hope you understand what i mean.

Extreme
11-10-2003, 12:48 AM
Yes, in this example, but I was talking generaly, if I wanted to hide a certain part of code, that is possible to see normaly, with "view-source:"...
Maybe something called preload?? Someone told me about it long ago, but I have forgoten if it is any valuable..

pyro
11-10-2003, 07:07 AM
You can not hide source code. While the PHP code itself can be hidden, the output of the PHP (ie. the HTML you spit out) can not be hidden.

Khalid Ali
11-10-2003, 07:29 AM
You can not hide HTML code( you can try), Internet is open source,hence all of its contents are viewable,use able by any one who desired.