Okay.
To show a the persons IP adress you use this code...
But I would like it to come out as Veranda + Bold.Quote:
<? echo "IP: $REMOTE_ADDR"; ?>
How do I Do what with out damaging the script?
Printable View
Okay.
To show a the persons IP adress you use this code...
But I would like it to come out as Veranda + Bold.Quote:
<? echo "IP: $REMOTE_ADDR"; ?>
How do I Do what with out damaging the script?
<html>
<head>
</head>
<body>
<font size="1" face="Verdana">
<? echo "IP: $REMOTE_ADDR"; ?></font>
</body>
</html>
there you go
thats one of the plus's of php you can just jamm it in with regular html :D
athogh your script for the ip is wrong
would be what you want. Unless you are asigning that to the varible $REMOTE_ADDR alreadyPHP Code:<?php echo ($_SERVER['REMOTE_ADDR']);?>
aka
ps. For blold as wellPHP Code:$REMOTE_ADDR = $_SERVER['REMOTE_ADDR'];
orHTML Code:<b><font size="1" face="Verdana"><? echo "IP: $REMOTE_ADDR"; ?></font></b>
HTML Code:<b><font size="1" face="Verdana"><?php echo ($_SERVER['REMOTE_ADDR']);?></font></b>
Okay. So for there browser to show its...
Quote:
<html>
<head>
</head>
<body>
<font size="1" face="Verdana">
<?php echo $_SERVER['HTTP_USER_AGENT']; ?></font>
</body>
</html>
if its a php page. the php will have be phased to show whoevers veiwing the pages ip adressQuote:
Originally Posted by Luckyrare™
so for exsmaple it may look like
<html>
<head>
</head>
<body>
<font size="1" face="Verdana">00.00.000.00 </font>
</body>
</html>
but what you said is what you may wnat to put on your actal page in the programing veiw.
Iam going to put the script in a iframe. That should work?
yea. ifraim will make no differnce, ifraims are loaded in the same way, exwpet there displayed inside anotehr page :D
Yeah xD
Do you no how to password protect a page for viewing?
can be done simply and complex. with php the main ways would itehr be using sessions, or easyer cookies. then creat a falt file database of uses. and a loggin page.
if you have cpanle you can also secure a floder via that which is helpful.
id be happy to help more, but i g2g.
make sure u name the page
pagename.php or it wont work make sure it has .php on the end instead of .htm on .html etc etc