ftp_put w/out file upload - IS THIS POSSIBLE??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
clem_c_rock
Forum Commoner
Posts: 46
Joined: Mon Jun 07, 2004 9:18 am

ftp_put w/out file upload - IS THIS POSSIBLE??

Post by clem_c_rock »

hello,
I need to find a way to upload a file to a server w/out using the

<INPUT TYPE="FILE" NAME="uploaded_file">

method. I want to just provide the path of the file and send that to the ftp_put() function.

Is this possible or is there another way to transfer the file?

I know this is desparate but this is what I'm trying to do:

$test_file = 'C:\Documents and Settings\All Users\Desktop\SITES\RESEAU_DESIGNS\ACCESS_MEDICAL\new_site\rexview.txt';
if( ftp_put( $conn_id, 'text_file.txt', $test_file, FTP_BINARY ) )



Thanks,
Clem C

feyd | Thread LOCKED, :arrow: original thread
Locked