note 31219 deleted from function.tmpfile by nlopess

From: Date: Fri, 02 Jan 2004 12:04:08 +0000
Subject: note 31219 deleted from function.tmpfile by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62778@lists.php.net to get a copy of this message
Note Submitter: phpnovice@home-safe.net ---- 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.

« previous php.notes (#62778) next »