|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-06-21 09:39 UTC] 336764 at 163 dot com
Description: ------------ Warning: ftp_nlist() [function.ftp-nlist]: Unable to create temporary file. Check permissions in temporary files directory. in /web/browse.inc.php on line 181 Warning: ftp_rawlist() [function.ftp-nlist]: Unable to create temporary file. Check permissions in temporary files directory. in /web/browse.inc.php on line 181 /tmp is chmod 777 and other temporary directory is 777 too. Reproduce code: --------------- $rawlist = ftp_rawlist($conn_id, "-a"); $rawlist = ftp_rawlist($conn_id, ""); $rawlist = ftp_nlist($conn_id, "-a"); $rawlist = ftp_nlist($conn_id, ""); Expected result: ---------------- Warning: ftp_nlist() [function.ftp-nlist]: Unable to create temporary file. Check permissions in temporary files directory. /web/browse.inc.php on line 181 Actual result: -------------- list all files to array. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 18:00:01 2025 UTC |
You can set the TMPDIR value with the putenv(). Example: putenv("TMPDIR=/path/to/public_html/tmp"); Be sure to put it back to what it was before if you are on a shared server environment.