|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-10 23:08 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 05:00:01 2025 UTC |
OS - Win2K, IIS, PHP. If i use NTFS on my C drive under Win2K, and try to get file over ftp using ftp_get(), ftp_get() fails. The problem is in C code in php_ftp.c: C function tmpfile(), that used for creation of temporary files, try to create this file on C:\ (in the root directory, according to C docs): ================ Source code from php_ftp.c =============== /* get to temporary file, so if there is an error, no existing file gets clobbered */ if ((tmpfp = tmpfile()) == NULL) { php_error(E_WARNING, "error opening tmpfile"); RETURN_FALSE; } =========================================================== But, for security reasons, root directory can't be writable by Anonymous user, so ftp_get() fails. ftp_get() work only if we have c:\ world writable.