|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-05 23:55 UTC] jani@php.net
[2007-10-13 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 02:00:01 2025 UTC |
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