php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7242 Function tmpfile() NOT Working on MS. Windows NT
Submitted: 2000-10-16 10:27 UTC Modified: 2001-06-21 23:36 UTC
From: jsh at terma dot com Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.0.3 OS: Windows NT
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.
Password:
Status:
Package:
Bug Type:
Summary:
From: jsh at terma dot com
New email:
PHP Version: OS:

 

 [2000-10-16 10:27 UTC] jsh at terma dot com
I have problems to use function tmpfile() on MS. Windows NT.

Use: Personal Web Server (PWS Version 4.0) from Windows NT Option Pack.

Error Message: "Warning: tmpfile: Permission denied " 

Even when c:\tmp and c:\temp is set for Write permission for everyone.

On  MS. Windows 95 It works well. 

I used a small script to found out where the temporary files is created on Windows 95:

<?PHP
$TEMP = tmpfile();
sleep(100);
?>

When this script is running on Windows 95; it create a file t3vvgxxx (the last three character is random) on the C: drive.

As test, I tried to set the C:\ for write permission for everyone on the Windows NT server. Still the same Error message: "Warning: tmpfile: Permission denied " 

Regards,

John

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-03 01:12 UTC] sniper@php.net
Does this happen with PHP 4.0.5 too?

 [2001-06-21 23:36 UTC] sniper@php.net
Of course the directory where the tmpfile() should create
the file has to have such permissions that the user as
the webserver is running can write to it.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 15:01:28 2024 UTC