Raised This Month: $ Target: $400
 0% 

Delete some files VIA ftp dedi server


Post New Thread Reply   
 
Thread Tools Display Modes
chris-1337
Senior Member
Join Date: Jan 2008
Location: The United Kingdom Of Gr
Old 01-08-2008 , 15:56   Re: Delete some files VIA ftp dedi server
Reply With Quote #11

Not completely sure how to go through all directories & sub-directories, however anyone else is free to take my code, I suggest in the public function "public cmd_delfile" the loop is run and then "public cmd_deltype" is run.
chris-1337 is offline
Send a message via MSN to chris-1337
lolhax44
BANNED
Join Date: Jan 2008
Old 01-08-2008 , 16:03   Re: Delete some files VIA ftp dedi server
Reply With Quote #12

Don't Know if this will work

PHP Code:
cmd_deltype("%s/%d"".ztmp"); 
Oh and where can i find this String include and file include :/
lolhax44 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-08-2008 , 17:02   Re: Delete some files VIA ftp dedi server
Reply With Quote #13

He included those because he is still new to coding. Those are not needed at all to include as amxmodx includes them.

And no, that won't work. I might decide to create something, but this is still a stupid idea. The server is just going to recreate them the next time it needs to transfer the file anyways.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
lolhax44
BANNED
Join Date: Jan 2008
Old 01-08-2008 , 17:41   Re: Delete some files VIA ftp dedi server
Reply With Quote #14

Quote:
Originally Posted by YamiKaitou View Post
He included those because he is still new to coding. Those are not needed at all to include as amxmodx includes them.

And no, that won't work. I might decide to create something, but this is still a stupid idea. The server is just going to recreate them the next time it needs to transfer the file anyways.
oh 1 question Will it cause FPS /server Lagg
lolhax44 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-08-2008 , 17:43   Re: Delete some files VIA ftp dedi server
Reply With Quote #15

Maybe. You asked for a plugin that will do a certian thing. If it causes lag, not my fault if this is the only way it can be done. If you really want to prevent possible lag, develop a web based script to do this or ask your ISP to create a script for it, OR forget about it and just leave the files there, they will come back anyways
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Roach
Writes love letters to sawce Daily
Join Date: Jul 2006
Location: Internet
Old 01-08-2008 , 23:26   Re: Delete some files VIA ftp dedi server
Reply With Quote #16

Quote:
Originally Posted by Lee View Post
Why?
Why make HLDS work harder than it has to? Why not just let the filesystem of the box itself delete the files? I could see a drop in performance because HLDS is indexing and searching its folders for .ztmp files while trying to run the normal server operations and anything else. Dunno how much of a drop, but it is possible.

JM2c.
__________________
Quote:
Originally Posted by Brad View Post
That sounds like a really good idea!
Now replace the word "good" with "dumb".
What was your rationale for proposing such a thing?
Roach is offline
lolhax44
BANNED
Join Date: Jan 2008
Old 01-09-2008 , 08:56   Re: Delete some files VIA ftp dedi server
Reply With Quote #17

BTW i dont host it on my pc its 24/7 and i need one to delete it
lolhax44 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode