Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDevelopment Articles

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:
  #1  
Old November 10th, 2000, 08:24 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Ftp client

Hello,
Don't IE and Netscape already have this functionality?

I would like to see something more useful as an example...

How about this one.

We build a file upload script that replicates to another server(s) using streams and ftp, after the initial upload through a form. Now this would be useful.

You would use this script to upload new pictures to a site in a farm environment (for example) instead of ftping to each server individually.

Now I actually have to think and do it myself... I will put it on Zend's site when I get it right...

Hey, I can't complain... At least this is an example of streams and ftp...

L8,
Neil

Reply With Quote
  #2  
Old November 10th, 2000, 09:11 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
FTP-connections

I can not see anything about this issue
here, is ths a joke??

Reply With Quote
  #3  
Old November 10th, 2000, 11:47 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Ftp client

This is useful. For one you could create a homepage community script pretty easily with this. I have yet to read the http trasfer section, but I bet that you could create a secure ftp web application with that!

Reply With Quote
  #4  
Old November 10th, 2000, 11:59 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
middleware

About an month or maybe more ago I saw that bunch of functions. An idea came to my mind. Why not to use these functions to download files from I'net. The core is that my computer have an I'net connection which is faster to local country sites but is slow to any other site. So I write a script and upload it on a public server which supports PHP scripting then I instruct the script to open connection for example to microsoft.com and to start downloading but simultaneously it opens a connection to a public site which is local in my country. The script reads portion by portion bytes from microsoft and copies those bytes to my local site.
<br>
What do you think about that?

Reply With Quote
  #5  
Old November 12th, 2000, 07:04 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
large uploaded files

Is there a file size limit on uploads, I know the default max file size in php is 2mb, so when I increase it to 4mb php times out. Is there a way to tell php to wait until the upload is finished?

If so am I at the mercy of my web host in order to make such changes?

I hope this makes sense. --z

Reply With Quote
  #6  
Old November 13th, 2000, 05:43 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: large uploaded files

There is a timeout for the length of time a php script runs. Try changing that also.

Reply With Quote
  #7  
Old November 15th, 2000, 09:30 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
directory listing

Is there any way to get a list of all the directories in the current folder?

Reply With Quote
  #8  
Old November 17th, 2000, 07:43 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: large uploaded files and PHP3 translate !!!

well,
<br>
<br>
I put .php3 instead of .php4 and it seems to work ! But after modify some few things for my website, I have the same problem with the large uploaded files !
<br>
<br>
But WHERE we can try to change the timeout ?
<br>
<br>
THANKS !!!

Reply With Quote
  #9  
Old November 22nd, 2000, 10:28 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Simple file upload vs ftp_put

Greetings,
<br>
<br>
When you upload a file it first upload it to the /temp_upload_dir then open a FTP conection and transfer the file. How can I gain performance over a simple file upload? I mean, if I have a simple upload job to the localhost, why should I use FTP functions?
<br>
<br>
Is there a way to make a direct FTP connection client/server without having to upload the file to /temp_upload_dir?
<br>
My problem is performance(speed) when uploading large files(more than 50Mb).
<br>
<br>
Thanks very much for the attention.
<br>
Sorry for my poor english, best regards, ALEX.
<br>

Reply With Quote
  #10  
Old November 24th, 2000, 10:02 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
FTP_SIZE

how is it used in all do you have to make a connection first and what do you put in it?

ftp_size()

Reply With Quote
  #11  
Old November 28th, 2000, 10:42 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Blocking FTP Client access

I'm not too familiar with setting up server permissions, etc. Is it possible to block people from using a third party FTP client like CuteFTP so they are forced to use a browser based FTP client similar to this one?
Thanks!

Reply With Quote
  #12  
Old November 29th, 2000, 08:39 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Fatal Error

When I try to connect to an ftp server using this script, i get the following error message: Fatal error: Maximum execution time of 30 seconds exceeded in c:/webs/ftp/actions.php4 on line 110

Reply With Quote
  #13  
Old December 5th, 2000, 05:23 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
FTP and Images

I am having problems getting images to upload uncorrupted. They upload, but get scrambled a bit.
<br>
<br>
Here's a bit of a clue. One .gif file I uploaded has a size of 2930 before upload and 2929 after upload. This happens to any image file. Seems 1 byte is getting lost.
<br>
<br>
What is happening and why? Anyone else run into this?
<br>
<br>
Thanks Wil
<br>
Actual code -
<br>
<CODE>
<br>
ftp_login($conn_id,$ftpusername,$ftppassword);
<br>
//set upload folder
<br>
ftp_chdir($conn_id,"public_html/productimages/");
<br>
$mode = "FTP_BINARY";
<br>
//upload file
<br>
$upload = ftp_put($conn_id, $dest, $source, $mode);
<br>
</CODE>

Reply With Quote
  #14  
Old December 6th, 2000, 09:27 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: FTP and Images

Solved my own problem. Don't use variables to set mode.
<br>
<br>
I used -
<br>
$mode = "FTP_BINARY";
<br>
$upload = ftp_put($conn_id, $dest, $source, $mode);
<br>
<br>
This doesn't work you must use -
<br>
$upload = ftp_put($conn_id, $dest, $source, FTP_BINARY);
<br>
<br>
Thanks,
<br>
Wil Genovese (The Juggler)
<br>
<br>
<br>
<br>
<br>

Reply With Quote
  #15  
Old December 7th, 2000, 07:38 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
help to compile ftp functions

I cannot seem to compile the ftp functions on my Apache server. I know I need to enable ftp, but where in my php.ini file does it go? And what is the correct syntax?

I cannot seem to find the answer in any of the maillists. Any help would be great.

z m

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Stream Me Up, Scotty! (part 1)


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 1 hosted by Hostway
Stay green...Green IT