note 7470 deleted from function.popen by didou
| From: | didou@php.net | Date: | Thu, 19 Feb 2004 17:30:42 +0000 |
| Subject: | note 7470 deleted from function.popen by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-65412@lists.php.net to get a copy of this message | ||
Note Submitter: matthew@leftcoast.com
----
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);