catngo
02-09-02, 12:07 AM
this is my php script that will display client IP address:
<HTML>
<HEAD>
<TITLE></TITLE>
<BODY>
<?php
$userip = $REMOTE_ADDR;
echo $userip
?>
</BODY>
</HTMP>
and the filename of this is ip.php
if i call this script alone, it will show my ip address. (my IIS 5.0 is PHP enable). now, i want to embed this script into my html file.
example: to call an image in an HTML i use <IMG src="image.jpg">
in this case, i want PHP script instead of image.
thanks
cat
<HTML>
<HEAD>
<TITLE></TITLE>
<BODY>
<?php
$userip = $REMOTE_ADDR;
echo $userip
?>
</BODY>
</HTMP>
and the filename of this is ip.php
if i call this script alone, it will show my ip address. (my IIS 5.0 is PHP enable). now, i want to embed this script into my html file.
example: to call an image in an HTML i use <IMG src="image.jpg">
in this case, i want PHP script instead of image.
thanks
cat