| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2003-08-19 01:36 UTC] derick@php.net
  [2003-08-19 02:48 UTC] zhuzhi at scxxt dot com dot cn
  [2003-08-19 04:31 UTC] sniper@php.net
  | 
    |||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 06:00:01 2025 UTC | 
Description: ------------ I just tried to FTP some files to a linux server with a php file. When I tried this in local machine(W2K + apache 1.3.27 + php4.2.3), all were right, but when I upload my scripts to the web server(RH linux 7.3 + apache 2.0.49 + php 4.3.2) and tried it again, the scripts did nothing. I tried to add "echo" in the scripts and I found ftp_rawlist() and ftp_nlist() did not work at all. But all were right in my local machine! Reproduce code: --------------- the following is the code <? $conn=ftp_connect($server,$port); ftp_login($conn,$name,$passwd); $rawlist=array(); $nlist=array(); $rawlist=ftp_rawlist($conn,"/"); $nlist=ftp_nlist($conn,"/"); foreach($rawlist as $item) { echo $item; } ?> Expected result: ---------------- so please give me some ideas of this problem ASAP,thanks. Because I need this urgently!