note 31219 added to function.tmpfile
| From: | phpnovice at home-safe dot net | Date: | Mon, 14 Apr 2003 10:28:55 +0000 |
| Subject: | note 31219 added to function.tmpfile | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46588@lists.php.net to get a copy of this message | ||
First I wrote my script using the fancy proc_open() before I discovered my PHP was not at the
necessary level. Now I have to change it to use a temporary file for either the input or the
output. Then I started to write a version using tmpfile() only to discover it doesn't give me
the file _name_ so that I can put that name in my command as the standard input redirect.
For that purpose, if you don't have proc_open() available for bidirectional piping, it appears
that tmpnam() is the right approach.
--
http://www.php.net/manual/en/function.tmpfile.php
http://master.php.net/manage/user-notes.php?action=edit+31219
http://master.php.net/manage/user-notes.php?action=delete+31219
http://master.php.net/manage/user-notes.php?action=reject+31219