Posted by GregoryD on 04/03/06 19:35
"milahu" <milahu@googlemail.com> wrote in message
news:1144074324.661115.67570@j33g2000cwa.googlegroups.com...
> You can obtain the generated code via PHP's output control functions
> [1].
> Writing files is done using fwrite() [2].
> You can check the client's IP using following code:
>
> <?php
> $IP = explode('.', $_SERVER['REMOTE_ADDR']);
> if ($IP[0] == '192' && $IP[1] == '168') {
> // Client from 192.168.*
> }
> ?>
>
> [1] http://www.php.net/outcontrol
> [2] http://www.php.net/fwrite
Thanks! That's exactly what I needed, just didn't know where to look. :)
GregoryD
Navigation:
[Reply to this message]
|