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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old January 15th, 2004, 11:45 AM
kaen kaen is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 63 kaen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
ftp warnings

Warning: ftp_put(): Ready to receive "1.zip" . Mode STREAM Type BINARY. in /home/the/public_html/mysql/uploadtest.php on line 337

Warning: ftp_put(): Write error (se=0, pe=1015). Transfer aborted. in /home/the/public_html/mysql/uploadtest.php on line 337

Can anyone explain to me in detail what this warning means, and what I might be doing wrong? My script is supposed to take a zip file and upload it to another ftp server...
__________________
~ Kaen

Reply With Quote
  #2  
Old January 15th, 2004, 01:30 PM
Sepodati's Avatar
Sepodati Sepodati is offline
Banned
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Dec 1999
Location: Afghanistan
Posts: 14,378 Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate FolderFolding Points: 70305 Folding Title: Intermediate Folder
Time spent in forums: 2 Months 3 Weeks 6 Days 22 h 11 m 9 sec
Reputation Power: 1784
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
It looks like PHP couldn't write the file to the FTP location. Maybe the user you're connecting with doesn't have write access or you're trying to write it to an invalid place?

---John Holmes...

Reply With Quote
  #3  
Old January 17th, 2004, 11:29 PM
kaen kaen is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 63 kaen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
So basically that error arises from either an invalid location or no write access?

Reply With Quote
  #4  
Old January 18th, 2004, 01:42 AM
DigitalD's Avatar
DigitalD DigitalD is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 6 DigitalD User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Post your code that you are using. That will help a little more.

From an initial glance it looks like a rights issue.

Reply With Quote
  #5  
Old January 19th, 2004, 07:25 PM
kaen kaen is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 63 kaen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
PHP Code:
//Make a directory on alternate servers for files to be uploaded to
ftp_chdir ($conn_id$_GET[type]);
$mkdir ftp_mkdir ($conn_id$_GET[dirname]) or die("<br>There was an error- you have come here from the wrong place."); 
ftp_chdir ($conn_id$_GET[dirname]);

//Opens directory that contained files uploaded by user, which will be uploaded to the alternate ftp server
$dir "temp$_GET[dirname]/";
$files = array();
$open opendir($dir);
while (
$file readdir($open)) { if ($file != "." && $file != "..") { $files[] = $file; } }
closedir($open);
sort($files);
reset($files);


//uploads each file in that directory to the server
for ( $i=0$i count($files); $i++ ) { 

//Upload
$source_file="temp$_GET[dirname]/$files[$i]";
$destination_file="$files[$i]";

$upload ftp_put($conn_id$destination_file$source_fileFTP_BINARY); 

unlink($source_file);


Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > ftp warnings


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