ID: 25347 Updated by: [EMAIL PROTECTED] Reported By: spam at come dot no-ip dot com -Status: Open +Status: Bogus Bug Type: FTP related Operating System: Windows XP Pro PHP Version: 4.3.3 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [2003-09-01 19:46:52] spam at come dot no-ip dot com Nop, same thing. as I mentioned above, if u installed Apache2 as a service, it will work properly untill u asighn it to start as different user (not as SYSTEM and not from ADMINISTRATORS group) ------------------------------------------------------------------------ [2003-09-01 18:52:28] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Works just fine for me (under Apache2, running as service under XP) ------------------------------------------------------------------------ [2003-09-01 18:08:08] spam at come dot no-ip dot com yes, I'm sure that its connecting, because in the script above I used public ftp server just that others could check it out, but I checked in on my local ftp server and I could check its logs as well. in my php.ini error logs set to show ALL (display and in log file) nothing showing in apache logs either. I ment it shows "nothing" that it doesnt show anything from the ftp_rawlist() result ;) P.S. here is what I get in my BulletProofFTP v2.21: ************************************************** (000015) 9/1/2003 6:07:27 PM - (not logged in) (192.168.1.3) > connected to ip : 192.168.1.3, hostname : server (000015) 9/1/2003 6:07:27 PM - (not logged in) (192.168.1.3) > sending welcome message. (000015) 9/1/2003 6:07:27 PM - (not logged in) (192.168.1.3) > 220 [EMAIL PROTECTED] (000015) 9/1/2003 6:07:27 PM - (not logged in) (192.168.1.3) > USER vano (000015) 9/1/2003 6:07:27 PM - (not logged in) (192.168.1.3) > 331 Password required for vano. (000015) 9/1/2003 6:07:27 PM - (not logged in) (192.168.1.3) > PASS **** (000015) 9/1/2003 6:07:27 PM - vano (192.168.1.3) > logged in. (000015) 9/1/2003 6:07:29 PM - vano (192.168.1.3) > 230 User vano logged in. (000015) 9/1/2003 6:07:29 PM - vano (192.168.1.3) > CWD / (000015) 9/1/2003 6:07:29 PM - vano (192.168.1.3) > asked to change directory : 'F:\ -> F:\' --> Access allowed. (000015) 9/1/2003 6:07:29 PM - vano (192.168.1.3) > 250 CWD command successful. "/" is current directory. (000015) 9/1/2003 6:07:29 PM - vano (192.168.1.3) > QUIT (000015) 9/1/2003 6:07:29 PM - vano (192.168.1.3) > 221 Bye bye ... (000015) 9/1/2003 6:07:29 PM - vano (192.168.1.3) > disconnected. (00:00:01) ****************************************** all this is what ftp_login() function sends, and no requests where received from ftp_rawlist() nor ftp_nlist() functions. ------------------------------------------------------------------------ [2003-09-01 17:52:34] [EMAIL PROTECTED] Actual result can not really be 'nothing' since you output stuff in the script. Are you sure it's not actually crashing? (check the apache logs) And/or does it actually connect? (you don't check that) Add 'error_reporting(E_ALL);' in top of your script. And check your phpinfo() output that "display_errors" php.ini setting is 'On'. ------------------------------------------------------------------------ [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