Google

NukeCoder


View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
Chico




Joined: Apr 12, 2005
Posts: 11

PostPosted: Tue Apr 12, 2005 10:40 pm
Reply with quote

Great tool this m8 best one I have used so far but I do have one problem, I tested it on a site for db backup and file backup, I can delete the db backup gzip in the backup folder but in the backup/file folder I can not delete the file gzip file, it won't let me change the chmod on it or anything, it is a 34mb file and is taking up room, is there a way I can bypass this other than scrapping the whole site and starting from fresh in webhost manager???

Many thanks in advance
 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Tue Apr 12, 2005 11:11 pm
Reply with quote

are you using cpanel or similalar to chmod?
have you tried chmod using a ftp client?
can you see what the permissions on the folder and file currently are?
 
View user's profile Send private message Visit poster's website
Chico




Joined: Apr 12, 2005
Posts: 11

PostPosted: Tue Apr 12, 2005 11:17 pm
Reply with quote

Have used filezilla and ws_ftp pro to chmod the file and folder with no luck. the file folder is 755 and the file inside is 644 when I try to change chmod i get the following message

Code:
Response:   200 PORT command successful
Command:   TYPE A
Response:   200 TYPE is now ASCII
Command:   LIST -a
Response:   150 Connecting to port 5868
Response:   226-Options: -a -l
Response:   226 3 matches total
Status:   Directory listing successful


But yet both remain the same chmod as before
 
View user's profile Send private message
Ghost




Joined: Jan 08, 2005
Posts: 55
Location: Puyallup, Washington

PostPosted: Tue Apr 12, 2005 11:29 pm
Reply with quote

Chico, you should use your cpanel, of all the FTP's I have used, I have yet to find one that properly and successfully CHMOD any file. But I also believe that the authorities in which your FTP may be able to perform is determined according to your host. Use you cpanel, and lets us know the results please.

Ghost
 
View user's profile Send private message Send e-mail MSN Messenger
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Tue Apr 12, 2005 11:37 pm
Reply with quote

thats weird, 644 should allow you to delete it using ftp.

you can try deleting it using a quick php script.

create a blank php file and name it whatever you want.
Put the following into the file....

Code:

<?php

if (unlink("backup/file/xxxx.tar.gz")){

echo "the file was deleted!";

}

?>


replace xxxx.tar.gz with the exact file name you want to delete
upload this to the same place as your mainfile.php
call it with your browser http://yoursite.com/xxx.php
replace xxx.php with what you named the file.

if it is not successful you will a blank white page
 
View user's profile Send private message Visit poster's website
Chico




Joined: Apr 12, 2005
Posts: 11

PostPosted: Wed Apr 13, 2005 11:19 am
Reply with quote

Gotcha you are a genious m8 it worked, i used that script uploaded it pointed browser towards it and got

Quote:
the file was deleted!


And it has gone
Is there a way to delete a directory that says it is empty but won't delete and again the chmod won't change. I had a subdomain client who abused the rules so I deleted his account but I can not delete one folder for some weird reason.

Cheers m8
 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Wed Apr 13, 2005 2:28 pm
Reply with quote

You could use the same script to delete the folder just point it to the folder like this...

Code:
unlink("folder/subfolder");
 
View user's profile Send private message Visit poster's website
Chico




Joined: Apr 12, 2005
Posts: 11

PostPosted: Wed Apr 13, 2005 2:35 pm
Reply with quote

Ok I tried that before m8 hoping it would work, but I get an error each time

Code:
Warning: unlink(folder/subfolder): Is a directory in /home/mysite/public_html/delete.php on line 3


I have changed the folder names here just in case you think I used the folder/subfolder by mistake lol. I have at the moment made a trash folder and placed the folders in their for now. Thanks for your time m8 and help if you can come up with anything I would appreciate it.

Thanks again
 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Wed Apr 13, 2005 2:47 pm
Reply with quote

try changing the word unlink with rmdir

Code:
rmdir("folder/sub");
 
View user's profile Send private message Visit poster's website
Chico




Joined: Apr 12, 2005
Posts: 11

PostPosted: Thu Apr 14, 2005 1:55 pm
Reply with quote

Very Happy worked m8 cheers. you rock m8. can't wait till the next version of map manager comes out so it will work on nuke 7.6, tried old version but not work so good on nuke 7.6.

Keep up the good work m8
 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Thu Apr 14, 2005 4:00 pm
Reply with quote

Map manager for nuke 7.6 is already available! If you have any questions about it, use This Forum
 
View user's profile Send private message Visit poster's website
free69




Joined: May 02, 2005
Posts: 3

PostPosted: Mon May 02, 2005 8:28 pm
Reply with quote

gotcha wrote:
try changing the word unlink with rmdir

Code:
rmdir("folder/sub");

Hello,
I tried to remove dead folder with
Code:
if (rmdir -r ("home==")){
==> error.
Code:
if ("rmdir -r home=="){
==> Displays the file was deleted!
but actually not removed.

I have many dead folders as hosting company bankrupted and can run merely basic operation.
How to remove folders?
 
View user's profile Send private message Send e-mail Visit poster's website
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Mon May 02, 2005 10:25 pm
Reply with quote

try using this format

Code:

<?php

if (rmdir("home")){

echo "the folder was deleted!";

}

?>


make sure your path is relative to the place of the script

Code:
//to move up one directory
rmdir("../home")



get more info at
http://us4.php.net/manual/en/function.rmdir.php

look towards the bottom in the users comments for some nice functions to delete directories/sub-directories.
 
View user's profile Send private message Visit poster's website
free69




Joined: May 02, 2005
Posts: 3

PostPosted: Mon May 02, 2005 11:42 pm
Reply with quote

Thank you very much and it makes me pulling my hair out.
Code:
if (rmdir("../home==")) {


Warning: RmDir failed (No such file or directory) in /home/free/public_html/remover.php on line 5.

public_html is nuke's root and there is a "home=="
Another matter is that I cannot change permission due to the same reason.

Therefore, I cannot still exectute abvbackup.

Thank you.
 
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 5 Hours
Forums ©