note 9509 deleted from function.popen by felipe

From: Date: Sat, 29 Dec 2007 19:07:19 +0000
Subject: note 9509 deleted from function.popen by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134180@lists.php.net to get a copy of this message
Note Submitter: lexzeus at mifinca dot com ---- Try this (if you're familiar with vi editor) : <?php $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

« previous php.notes (#134180) next »