Devam Ediyor

475998 Delete a remote file using Curl

Hello,

First a little about my project...I have a form, that uses curl to upload an image to a remote computer using Curl. The code is php and uses ftp to upload the file. The upload script that I am using is working great and is located below:

$ch = curl_init();

$localfile = $_FILES['touchimage']['tmp_name'];

$fp = fopen($localfile, 'r');

curl_setopt($ch, CURLOPT_URL, 'ftp://'.$ftp_user_name.':'.$ftp_user_pass.'at'.$ipaddr.':12458/right_frame/middle_frame/images/'.$filenm.''); curl_setopt($ch, CURLOPT_UPLOAD, 1); curl_setopt($ch, CURLOPT_INFILE, $fp);

curl_exec ($ch);

curl_close ($ch);

What I need done is to create a Curl code in php using ftp to delete a file on the remote server. This shouldn't be too hard to do..I just don't know how to do it. The delete code won't have a form...the code will just be run and the file will be deleted on the remote server.

Thanks,

Cedric

Beceriler: Her şey Kabul, PHP

Daha fazlasını görün: php curl delete file, curl delete remote file, code computer, delete file using curl, php curl delete ftp, remote server, remote computer, delete, cedric, need curl, curl code, php using, code project remote, remote upload image, code delete file, run curl script, php remote image upload, curl upload script php, server remote upload, curl form script, fopen, remote upload file script, php curl image upload, curl script file, remote computer php

İşveren Hakkında:
( 1 değerlendirme ) Surrey, Canada

Proje NO: #2221903

Seçilen:

0 gün içinde 15$ USD
(0 Değerlendirme)
0.0