| Author |
Message |
Chico

Joined: Apr 12, 2005
Posts: 11
|
Posted:
Tue Apr 12, 2005 10:40 pm |
|
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 |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue Apr 12, 2005 11:11 pm |
|
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? |
| |
|
|
 |
Chico

Joined: Apr 12, 2005
Posts: 11
|
Posted:
Tue Apr 12, 2005 11:17 pm |
|
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 |
| |
|
|
 |
Ghost

Joined: Jan 08, 2005
Posts: 55
Location: Puyallup, Washington
|
Posted:
Tue Apr 12, 2005 11:29 pm |
|
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 |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue Apr 12, 2005 11:37 pm |
|
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 |
| |
|
|
 |
Chico

Joined: Apr 12, 2005
Posts: 11
|
Posted:
Wed Apr 13, 2005 11:19 am |
|
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 |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Wed Apr 13, 2005 2:28 pm |
|
You could use the same script to delete the folder just point it to the folder like this...
| Code: |
unlink("folder/subfolder"); |
|
| |
|
|
 |
Chico

Joined: Apr 12, 2005
Posts: 11
|
Posted:
Wed Apr 13, 2005 2:35 pm |
|
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 |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Wed Apr 13, 2005 2:47 pm |
|
try changing the word unlink with rmdir
| Code: |
rmdir("folder/sub"); |
|
| |
|
|
 |
Chico

Joined: Apr 12, 2005
Posts: 11
|
Posted:
Thu Apr 14, 2005 1:55 pm |
|
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 |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Thu Apr 14, 2005 4:00 pm |
|
|
|
 |
free69

Joined: May 02, 2005
Posts: 3
|
Posted:
Mon May 02, 2005 8:28 pm |
|
| 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? |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Mon May 02, 2005 10:25 pm |
|
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. |
| |
|
|
 |
free69

Joined: May 02, 2005
Posts: 3
|
Posted:
Mon May 02, 2005 11:42 pm |
|
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. |
| |
|
|
 |
|
|