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);
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.