What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-09-01 09:26:02
write a script using php telnet to a server
<?php // configuration $file = '/var/log/apache2/access.log'; $ip = '127.'; // start of script $title = "\033[H\033[2K$file"; if (strpos($_SERVER['REMOTE_ADDR'],$ip)!==0) die('Access Denied'); $stream = fopen($file, 'r'); if (!$stream) die(&q... Add solution