Delete user & file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Delete user & file

    i want to be able to delete all files in the gallery and downlods on wapdesire v2 can anyone help.

    iv tried and tried and tried but its getin me no where and its pissin meoff mnw
    Want something coded email me at sales@webnwaphost.com for a prices.





    #2
    use this tool

    PHP Code:
    uplink("pictures/$item[0]"); 
    uplink is a php deleting tool

    also add mysql to delete the sql
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      PHP: unlink - Manual

      Subzero might have typed it wrong in a hurry
      tinyurl.com/earnbymobile
      Easy earning for Indians
      ---------------------
      Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android
      goo.gl/6vub3

      Comment


        #4
        PHP Code:
        $file=mysql_fetch_array(mysql_query("SELECT  filename, path FROM gallery_files WHERE uid='".$who."'"));  $nick=explode("(",$file[0]); $filename=explode("gallery/",$file[1]);  unlink("../gallery/$filename[1]"); 
        iv been bessing around with this all yesterday and it only deletes one when i try and make it to delete all it dosnt wana play ball
        </span>
        Want something coded email me at sales@webnwaphost.com for a prices.




        Comment


          #5
          uplink is right ;)
          Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
          Visit: WapMasterz Coming Back Soon!
          _______
          SCRIPTS FOR SALE BY SUBZERO
          Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
          FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
          _______
          Info & Tips
          php.net
          w3schools.com

          Comment


            #6
            sub isnt it unlink not uplink if you wna delete
            Want something coded email me at sales@webnwaphost.com for a prices.




            Comment


              #7
              its quite easy @brumi if u do it like that only 1 record will b deleted. use a while statement but before u end it check if tha file exist then unlink. U could delete both user and file at once, send me that page n sql after work ill fix it up

              Comment


                #8
                Originally posted by subzero View Post
                uplink is right ;)
                it's unlink..
                My Blog: http://jhommark.blogspot.com
                My Facebook: http://www.facebook.com/jhommark
                My Official Site: http://www.undergroundweb.tk
                My Community Site: http://undergroundwap.xtreemhost.com

                Comment


                  #9
                  no it suplink() haa

                  Comment


                    #10
                    geez i must be true nub spelling yeah its unlink
                    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                    Visit: WapMasterz Coming Back Soon!
                    _______
                    SCRIPTS FOR SALE BY SUBZERO
                    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                    _______
                    Info & Tips
                    php.net
                    w3schools.com

                    Comment


                      #11
                      Originally posted by mobileGIGS View Post
                      no it suplink() haa
                      i haven't used uplink but ok, i agree with you and subzero.,maybe you have tested it.,but also unlink is working too..That's what i use..From the word itself..Unlink..Means like to remove..Am i right?..unlink or uplink..whatever.,the important is what function will remove the file..Coz for me, unlink() works..
                      Last edited by kiLLeR-eyEd_14; 04.08.09, 07:59.
                      My Blog: http://jhommark.blogspot.com
                      My Facebook: http://www.facebook.com/jhommark
                      My Official Site: http://www.undergroundweb.tk
                      My Community Site: http://undergroundwap.xtreemhost.com

                      Comment


                        #12
                        No its unlink a spelling error for me
                        Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                        Visit: WapMasterz Coming Back Soon!
                        _______
                        SCRIPTS FOR SALE BY SUBZERO
                        Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                        FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                        _______
                        Info & Tips
                        php.net
                        w3schools.com

                        Comment


                          #13
                          Originally posted by subzero View Post
                          No its unlink a spelling error for me
                          ok fine.,lol..i see..but letter n is far from letter p..mobile or pc..
                          Last edited by kiLLeR-eyEd_14; 04.08.09, 10:08.
                          My Blog: http://jhommark.blogspot.com
                          My Facebook: http://www.facebook.com/jhommark
                          My Official Site: http://www.undergroundweb.tk
                          My Community Site: http://undergroundwap.xtreemhost.com

                          Comment


                            #14
                            Originally posted by syrus View Post
                            its quite easy @brumi if u do it like that only 1 record will b deleted. use a while statement but before u end it check if tha file exist then unlink. U could delete both user and file at once, send me that page n sql after work ill fix it up
                            yup you where right, i just coded and tryed this and it worked.

                            Code:
                            $sql = "SELECT  filename, path FROM gallery_files WHERE uid='".$who."'";
                                $items = mysql_query($sql);
                                echo mysql_error();
                            
                            
                                if(mysql_num_rows($items)>0)
                                while ($item = mysql_fetch_array($items))
                                {
                                 $filename=explode("gallery/",$item[0]); 
                                 unlink("../gallery/$filename[0]");
                                }
                            Want something coded email me at sales@webnwaphost.com for a prices.




                            Comment


                              #15
                              Originally posted by crazybrumi View Post
                              yup you where right, i just coded and tryed this and it worked.

                              Code:
                              $sql = "SELECT  filename, path FROM gallery_files WHERE uid='".$who."'";
                                  $items = mysql_query($sql);
                                  echo mysql_error();
                              
                              
                                  if(mysql_num_rows($items)>0)
                                  while ($item = mysql_fetch_array($items))
                                  {
                                   $filename=explode("gallery/",$item[0]); 
                                   unlink("../gallery/$filename[0]");
                                  }
                              also to avoid some errors in case the file dnt exist u cld use
                              Code:
                               if(file_exist($file)){ unlink($link_variable); }
                              Last edited by syrus; 04.08.09, 17:14.

                              Comment

                              Working...
                              X