View Full Version : Hide text/code in php file ?
iLLuSioN
December 5th, 2001, 12:25
Can i hide text in a php file ? is there a hide tag if u can call it that ??
if i want to hide some of the code in the php file ;)
niv
December 5th, 2001, 17:48
Like hide text that you can display later or something? Or just a comment?
Comment:
<?php
# This is a comment.
# To use a comment, use the hash (#)
# character. The comment ends at the end of the line.
#
?>
Display later?:
<?php
function displayThisText(){
echo "blahblah";
}
?>
Hobbes
December 5th, 2001, 19:29
Write your file and save it as its own .php/.phtml or whatever
then in your html call it
<?
require('file.phtml');
?>
or however else and it will hide all your code (well it should).:confused:
niv
December 5th, 2001, 19:35
Originally posted by Hobbes
or however else and it will hide all your code (well it should).:confused:
No it won't. :confused2
View source will still show the content.
iLLuSioN
December 6th, 2001, 01:28
yeah it was so i could hide some of the text "content" of the php file when you press view source ;)
mark2455
December 6th, 2001, 10:46
There also a hack you can install called locl down or hide ip something like that. alot of people dono't like it though.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.