Problem with popen on php-4.1.1
| From: | php stuffies | Date: | Mon, 18 Feb 2002 21:38:17 +0000 |
| Subject: | Problem with popen on php-4.1.1 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85290@lists.php.net to get a copy of this message | ||
Hi all,
I have a very small example which was working on php-4.0.6 (actually taken from the documentation,
was one of the user examples) - please find it below:
Files in directory:
writer.php
textfile.txt
--------------------------
<?
$text = "hello";
$fpop=popen("vi testfile.txt","w");
fputs($fpop,"i");
fputs($fpop,"$text");
fputs($fpop,chr(27));
fputs($fpop,":wq\r");
pclose($fpop);
?>
This little snippet simply refuses to work on php-4.1.1. I had a look at the ChangeLog and bug
reports, but couldn't find anything which would help.
Any assistance would be appreciated!
-m.
_____________________________________________________________
Sign up for FREE email from 'Probed By Aliens' and other insane addresses at http://www.tshirthell.com