here is my code it is supposed to be an iplogger.
<script language="php"><%
$log_file = "ip.txt";
$ip = getenv('REMOTE_ADDR');
$fp = fopen("$log_file", "n");
fputs($fp, "$iprn");
flock($fp, 3);
fclose($fp);
PRINT("Your Ip was logged.....$ip");
%>
</script>
I am using frontpage 2000. On a local server, win98.
Here is the link.
http//storiesfrommissouri.com/test.php
Ok i took out th <% and %> and now i get
Warning: fopen(ip.txt) [function.fopen]: failed to create stream: No error in C:\sfm\~phpi_attlp.php on line 109
Warning: fputs(): supplied argument is not a valid stream resource in C:\sfm\~phpi_attlp.php on line 110
Warning: flock(): supplied argument is not a valid stream resource in C:\sfm\~phpi_attlp.php on line 111
Warning: fclose(): supplied argument is not a valid stream resource in C:\sfm\~phpi_attlp.php on line 112
Your Ip was logged.....
I know your supposed to chmod775 but i have no idea what that is on a local server? I also have no idea how to implement php i just download scripts and use the ones i like. :rolleyes: