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 -
TypeScript 2021-08-30 23:21:02
how to take inputs and give outputs from a file in c
#include<stdio.h> int main() { FILE *fp; char ch; fp = fopen("one.txt", "w"); printf("Enter data..."); while( (ch = getchar()) != EOF) { putc(ch, fp); } fclose(fp); fp = fopen(&q... Add solution