note 7470 modified in popen by ronabop

From: Date: Mon, 02 Oct 2000 11:07:25 +0000
Subject: note 7470 modified in popen by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-5917@lists.php.net to get a copy of this message
PHP4 appears to allow w+ for reading and writing.. ie: $fh=popen("/usr/local/sbin/stunnel -c -r secure.host.com:443","w+"); fwrite($fh,"GET /cgi-bin/test.sh HTTP/1.0\n\n"); $foo=fread($fh,8096); echo "Got <pre>\n$foo\n</pre>"; pclose($fh); http://www.php.net/manual/function.popen.php

« previous php.notes (#5917) next »