haha wow, ok well i just found out i don't know how to delete files off of ftp. here is what i have that does not work, right now im just trying to get it to delete a test file, text.txt.
if(($_POST['delete']) && isset($_POST['delbox'])) {
$ftpconn = ftp_connect("**.**.**.**") or die("Could not connect");
ftp_login($ftpconn,"********","*******");
ftp_chdir($ftpconn,"/home/n3graphics/domains/n3graphics.com/public_html/notaloser/caha/uploads/");
foreach($_POST['delbox'] as $dkey) {
$deletequery = mysql_query("DELETE FROM gallery WHERE id='".$dkey."'");
echo ftp_delete($ftpconn,"text.txt");
ftp_close($ftpconn);
header("Location: rempics.php");
}
}
right now, it deletes the entry in the database only. i want it to delete test.txt for this particular test, and i will change it so it deletes all selected files once i get this working.
anyone?