How To Remove Pic In Gallery Hosting?
Started on the old forum in July 2008 · view the original in the archive · old links redirect here
in the page where it removes the photo, delete from gallery where id=$id (Example) simply add this code on that page
unlink($id);
[del],$upload_dir) === false); //possible hacking else if (substr($_REQUEST[del],0,6)==$upload_dir) { unlink($_REQUEST[del]); header("location:$url_this?message=deleted successfully"); } } else if ($_FILES['userfile']) { $resource = fope
remove pic from hosting like this ... wap upload
Im tryna use unlink functi0n 2 delete all of a users pics when i delete their username but it 0nly deletes 1 pic, iv got it w0rkin when i just want 2 delete a single pic, but want it 2 delete all their pics when i delete the user... Code im usin is like $get_file = mysql_query("SELECT imageurl FROM my_table WHERE id='".$id."'"; list($del_path) = mysql_fetch_row($get_file); unlink($del_path);