ID: 25347 Updated by: [EMAIL PROTECTED] Reported By: spam at come dot no-ip dot com Status: Bogus Bug Type: FTP related Operating System: Windows XP Pro PHP Version: 4.3.3 New Comment:
Because your temp folder is probably located somewhere around D:\TEMP That's just a guess mind you... I can't quite see your drive structure from here. :) As to what's pointing there, it's most likely a system wide environment variable. Take a look at the output of "phpinfo()" and see if you have an environment variable by the name of $_ENV['TEMP'] (possibly $_SERVER['TEMP']). Even if it's not set, there may be something in Window's clib that knows to use it as a default. Previous Comments: ------------------------------------------------------------------------ [2003-09-02 18:14:34] spam at come dot no-ip dot com ah, ok, u were almost right... I got it to work only after I add write permission to entire drive! can someone explain me why is that? all software that need to run web server (apache, php, mysql, perl, etc) are located at D:\server\ if I add write permission to that folder, nothing happens, but if I add write permission to D:\ drive, then it start working... in my server configuration nothing pointing outside of \server\ folder, then why do I need set write permission to D:\ drive??? ------------------------------------------------------------------------ [2003-09-02 08:36:11] [EMAIL PROTECTED] You need to give it write permissions to TEMP directory. Whatever it is in your system.. ------------------------------------------------------------------------ [2003-09-01 22:24:53] spam at come dot no-ip dot com yes, probably the problem is permissions...but I've tryed add to my user read/write permissions to temp folder and sessions (the ones that set in php.ini) still no luck. I was following installation guide from apache package, that describes what folders needs to be set the permissions, also set php installation folder to be full control for my apache user, same thing. I'm running out of ideas on what else permission I could set up... P.S. I'm trying not to use any system folders neither for temp files nor for .ini settings, that makes less painless reinstalling system or upgrading software. I even tryed give full control and changed ownership to apache user on all folders that have any relationship to the apache+php. ------------------------------------------------------------------------ [2003-09-01 21:17:07] [EMAIL PROTECTED] ftp_nlist and ftp_rawlist require the ability to create a temporary file. The user you are running as does not have write premission to your TEMP directory. This is not a bug in ext/ftp, this is a configuration issue. Make sure whoever you're running Apache as has read/write/erase permissions in your system's temp directory. ------------------------------------------------------------------------ [2003-09-01 16:26:56] spam at come dot no-ip dot com Description: ------------ I know there are atleast few bug submittions but they are closed while the problem is still remain. I run Apache2 as "apache" user that is member of "USERS" group. ftp_rawlist() function returns nothing. I've checked my FTP logs and all I can see that PHP logs into FTP server and does not sends LIST command. Windows XP Pro on NTFS + Apache2 + PHP4.3.3 as SAPI module Reproduce code: --------------- <?php $conn = ftp_connect("ftp.symantec.com"); ftp_login($conn,"anonymous","[EMAIL PROTECTED]"); $nlist = ftp_nlist($conn, ""); $rawlist = ftp_rawlist($conn, ""); echo "<pre>"; echo "Values from ftp_nlist()<BR>"; print_r($nlist); echo "Values from ftp_rawlist()<BR>"; print_r($rawlist); echo "</pre>"; ?> Expected result: ---------------- List of the dirs Actual result: -------------- nothing ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25347&edit=1