|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8620 Function ImageJPEG can't open temporary file if image filename is not specified
Submitted: 2001-01-09 18:09 UTC Modified: 2001-05-02 18:16 UTC
From: pparola at brazilinfo dot com Assigned:
Status: Closed Package: GD related
PHP Version: 4.0.3pl1 OS: Win NT 4.00.1381
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: pparola at brazilinfo dot com
New email:
PHP Version: OS:


 [2001-01-09 18:09 UTC] pparola at brazilinfo dot com
Even with all directory permissions set right for user
IUSR_NTMACHINENAME (the user with which some person will access my website through IIS) I always get the following message when trying to generate an image without saving it to disk:

Warning:  imagejpeg: unable to open temporary file in C:\InetPub\MyWebDirectory\file_that_generates_the_image.php on line 76

Can somebody confirm that under NT there is no way to create a temporary image file? (Perhaps when uploading a file through PHP under NT the same problem should occur?).

I also verified if there was some problem with permissions relating the temporary upload directory setup in PHP.INI, and even changed this directory to be the same as the one reported by the browser with no success (that is, I setup this temp upload directory to be the same as the one where my script is running - just for testing purposes, since this would not be an acceptable solution).

Check also


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-01 01:11 UTC]
Does this happen with PHP 4.0.4pl1 too?
You could also try the latest CVS build from


 [2001-05-02 18:16 UTC]
No feedback. Closing

- James
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 09:01:29 2024 UTC