temp files

From: Date: Wed, 25 Jul 2007 08:53:36 +0000
Subject: temp files
Groups: php.general 
Request: Send a blank email to php-general+get-259499@lists.php.net to get a copy of this message
Hi! I have this code: $lines = gzfile("http://www.example.com/some/resource"); for its internal needs gzfile() creates a temp file such as /var/tmp/phpFjJxNX where the gzipped resource is kept. The file stays there forever and eventually the fs runs out of inodes. Any way to unlink the temp file from the script? I've found no api for that. Alternative code: $lines = file("compress.zlib://http://www.example.com/some/resource"); does the same thing still leaving the file around. Using PHP 4.3.3RC4 (built: Aug 24 2003 14:59:14) This could be a bug, but upgrading is not an option. Any help appreciated.

« previous php.general (#259499) next »