note 9509 added to popen

From: Date: Wed, 08 Nov 2000 08:53:59 +0000
Subject: note 9509 added to popen
Groups: php.notes 
Request: Send a blank email to php-notes+get-7492@lists.php.net to get a copy of this message
Try this (if you're familiar with vi editor) : <? $f=popen("vi newfile.txt","w"); sleep(1); fputs($f,"i"); // insert sleep(1); fputs($f,"Hello world\r"); // write the text to vi Editor sleep(1); fputs($f,chr(27)); // cancel action sleep(1); fputs($f,":wq\r"); // write and quit pclose($f); // back to php exit; ?> heh heh heh, LexZEUS http://www.php.net/manual/function.popen.php

« previous php.notes (#7492) next »