Advertisement

09.05.2008 at 10:59AM PDT, ID: 23707169 | Points: 125
[x]
Attachment Details

PHP FTP across Proxy

Asked by AndrewChang1120 in PHP Scripting Language, Web Languages/Standards, Scripting Languages

Tags:

I can do it with CURL but would rather use the PHP FTP functions

is there a way to set up PHP FTP to work with Godaddy proxy issues since they block port 21?

If it is not possible can some one explain how to properly use the rename function    
curl_setopt($ch, CURLOPT_QUOTE, array('RNFR $FILENAME','RNTO $RENAME'));  

I have looked everywhere and can not find information on it

Code for CURL Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
$fp = fopen($localfile, 'r');
                            curl_setopt($ch, CURLOPT_VERBOSE, 1);
                            curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
                            curl_setopt ($ch, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");
                            curl_setopt($ch, CURLOPT_URL, "ftp://$ftp_user_name:$ftp_user_pass@$ftp_server/$FILENAME");
 
                             curl_setopt($ch, CURLOPT_UPLOAD, 1);
                             curl_setopt($ch, CURLOPT_INFILE, $fp);
                          curl_setopt($ch, CURLOPT_INFILESIZE, filesize($localfile));
                           curl_exec ($ch);
[+][-]09.13.2008 at 08:40AM PDT, ID: 22467978

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.15.2008 at 09:21AM PDT, ID: 22480201

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.16.2008 at 01:05PM PDT, ID: 22492666

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.16.2008 at 08:37PM PDT, ID: 22495273

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.17.2008 at 04:35AM PDT, ID: 22497310

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.17.2008 at 08:04AM PDT, ID: 22499515

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628