#28865 [Opn->Fbk]: Functions ftp_*list
| From: | pollita@php.net | Date: | Thu, 24 Jun 2004 00:15:51 +0000 |
| Subject: | #28865 [Opn->Fbk]: Functions ftp_*list | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-61234@lists.php.net to get a copy of this message | ||
ID: 28865
Updated by: pollita@php.net
Reported By: 336764 at 163 dot com
-Status: Open
+Status: Feedback
Bug Type: FTP related
Operating System: MandRake 10
PHP Version: 5.0.0RC3
Assigned To: pollita
New Comment:
Now that you've changed your environment variable settings, and gotten
tmpfile() to work, do ftp_nlist() and/or ftp_rawlist() work as
expected?
Previous Comments:
------------------------------------------------------------------------
[2004-06-23 12:04:12] 336764 at 163 dot com
vi /root/.bashrc
Add "TMPDIR=/tmp"
save & exit;
Restart httpd
run php:
var_dump(tmpfile());
get:
resource(2) of type (stream)
------------------------------------------------------------------------
[2004-06-23 03:37:39] 336764 at 163 dot com
PHP5 Environment variable:
TMPDIR is /root/tmp
How to change it ?
------------------------------------------------------------------------
[2004-06-23 03:21:59] 336764 at 163 dot com
bool(false)
------------------------------------------------------------------------
[2004-06-21 17:59:11] pollita@php.net
What does the ouput of this show?
var_dump(tmpfile());
------------------------------------------------------------------------
[2004-06-21 09:39:35] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28865&edit=1