SunQuest
           FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old October 16th, 2003, 04:58 AM
iwarner iwarner is offline
BrainFreeze
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: London
Posts: 318 iwarner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 41 m 9 sec
Reputation Power: 9
Send a message via ICQ to iwarner Send a message via Yahoo to iwarner
FTP through PHP

Hi,

I have been connecting to a remote FTP server for some time now and recently it has stopped picking up the files that are stored there, it says I connect ok I can read the timeout for the ftp server.

However I cant list any files.

Has anyone had this problem before - using PHP through windows IIS.

code
PHP Code:
 $conn_id ftp_connect($ftp_server);
ftp_login($conn_id$ftp_username$ftp_password);
$dir ftp_pwd($conn_id);
$contents ftp_nlist($conn_id$dir);

IF (isset(
$contents) && $contents != '')
    {
                   FOREACH (
$contents AS $entry)

    echo 
'      <TR Bgcolor='.UseColor().'>
        <TD><P>'
.$entry.'</TD>
    <TD><P>'
.ftp_size($conn_id$entry).' bytes</TD>
    <TD><P><INPUT Type=Radio Name=file Value='
.$entry.'></TD>
    <TD><P><INPUT Type=Radio Name=filedelete Value='
.$entry.'></TD>
      </TR>'
;
    }

ftp_close($conn_id); 
__________________
_________________________
Triangle Solutions Ltd
http://www.triangle-solutions.com/

Reply With Quote
  #2  
Old October 16th, 2003, 10:39 AM
micros_bytes micros_bytes is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2002
Posts: 790 micros_bytes User rank is Corporal (100 - 500 Reputation Level)micros_bytes User rank is Corporal (100 - 500 Reputation Level)micros_bytes User rank is Corporal (100 - 500 Reputation Level)micros_bytes User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 10 h 29 m 56 sec
Reputation Power: 9
Have you tried connecting to the ftp server from an ftp client or via command line to see if you can list the files?

Sounds more like an issue with the ftp server than a PHP issue.

Reply With Quote
  #3  
Old October 16th, 2003, 09:25 PM
iwarner iwarner is offline
BrainFreeze
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: London
Posts: 318 iwarner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 41 m 9 sec
Reputation Power: 9
Send a message via ICQ to iwarner Send a message via Yahoo to iwarner
Hi,

Yes I have - files are in there fine - I have now tried about 10 different ftp accounts all have files PHP is listing none of them.

It was working then shut off.

PHP Bugs list some things that may apply

PHP BUGS

But why would it just stop

E

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > FTP through PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway