ID: 42867 Updated by: [EMAIL PROTECTED] Reported By: hosting at edv-doelker dot de -Status: Open +Status: Feedback Bug Type: FTP related Operating System: Debian ETCH PHP Version: 5.2.4 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi Previous Comments: ------------------------------------------------------------------------ [2007-10-05 12:35:26] hosting at edv-doelker dot de Description: ------------ Hi, i've the problem by using FTP commands (ftp_nlist, ftp_rawlist). This problem came after a Sever upgrade from Debian Sarge to Etch ans upgrading PHP4 to 5 incl. all securityupdates. ###### SNAP ####### Warning: ftp_nlist() [function.ftp-nlist]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/web63/html/:/var/www/web63/phptmp/:/var/www/web63/files/:/var/www/web63/atd/) in /var/www/web63/html/admin/module/ftp_liste.php on line 9 ################### I hope you could help me. thanks for checking Tobias Frank Reproduce code: --------------- <? @include ("db_connect.php"); // Herstellen der Basis-Verbindung $conn_id = ftp_connect("$FTP_host"); // Einloggen mit Benutzername und Kennwort $login_result = ftp_login($conn_id, "$FTP_user", "$FTP_pass"); // Upload der Datei $list = ftp_nlist($conn_id, "$verzeichniss"); // Schließen des FTP-Streams ftp_quit($conn_id); ?> Expected result: ---------------- Warning: ftp_nlist() [function.ftp-nlist]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/web63/html/:/var/www/web63/phptmp/:/var/www/web63/files/:/var/www/web63/atd/) in /var/www/web63/html/admin/module/ftp_liste.php on line 9 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42867&edit=1