|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
FTP-connections
I can not see anything about this issue
here, is ths a joke?? |
|
#3
|
|||
|
|||
|
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!
|
|
#4
|
|||
|
|||
|
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? |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
Re: large uploaded files
There is a timeout for the length of time a php script runs. Try changing that also.
|
|
#7
|
|||
|
|||
|
directory listing
Is there any way to get a list of all the directories in the current folder?
|
|
#8
|
|||
|
|||
|
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 !!! |
|
#9
|
|||
|
|||
|
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> |
|
#10
|
|||
|
|||
|
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() |
|
#11
|
|||
|
|||
|
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! |
|
#12
|
|||
|
|||
|
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
|
|
#13
|
|||
|
|||
|
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> |
|
#14
|
|||
|
|||
|
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> |
|
#15
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Other > Development Articles > Stream Me Up, Scotty! (part 1) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|