cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: remote file upload to remote ftp server

From: dynamite media <dynamitemedia_at_hotmail.com>
Date: Sun, 13 Nov 2005 05:19:17 -0500

great i looked over what you sent me on ftping to a site...

what i would like to use the getpageinvar and the ftp together, so it would look something like this....

<?php
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL,'$URL');   ( i may need the u-flag here  -u'$name':'$pass''$url')
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$result=curl_exec ($ch);

if  ... something to do with the $result

curl_setopt($ch, CURLOPT_URL,
            "ftp://'$fname':'$fpass'@ftp.'$fsite'/'$fpath'/'$result'");
curl_setopt($ch, CURLOPT_UPLOAD, 1);
curl_setopt($ch, CURLOPT_INFILE, '$name');
curl_close ($ch);
?>

and what i would like to do then is have a form or inpus on the site to input the following:
$name
$pass
$url
$fname
$fpass
$fsite
$fpath

i really would like the progress bar as well but have no clue how that works either...

now i amnot sure that could work but ist something i just quickly thought of.

do you think something that would work?  something where i input the variables i want?

the files i want to upload are not all on the sercer running the php/curl  and some need authenization.

i would need someone to right the php cause i dont know how to do it correctly

please tell me what you think

and thanks for your quick response

Thank you
Yunuen Hernandez

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2005-11-13