php forum
php mysql forum
php mysql smarty
 
Topic Options
#101044 - 03/25/00 07:51 AM Trying to write a routine....
Menno Offline
Junior Member

Registered: 03/20/01
Posts: 200
Ok, I've been modifying the ugb a bit lately

Now, I want to make a routine (in the control panel) that would make a backup of entries.file (as oldentries.file) and clear entries.file itseld (or delete it)

Now, how do I make this routine?

------------------
Cougar's here, so have no fear
Webmaster of www.artbeast.de

Top
#101045 - 03/25/00 08:07 AM Re: Trying to write a routine....
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
To delete a file use:
Code:
code:


To rename a file use:
Code:
code:


Just a thought
_________________________
http://www.iamcal.com

Top
#101046 - 03/25/00 03:19 PM Re: Trying to write a routine....
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
Here's how to do it to clear file:
Code:
code:


------------------
Thanks for reading!
Ilya
Administrator of Ubb Code Hackers Hideout
Moderator of UBB Hacks Finished
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#101047 - 03/26/00 02:50 AM Re: Trying to write a routine....
Menno Offline
Junior Member

Registered: 03/20/01
Posts: 200
thanks guys

------------------
Cougar's here, so have no fear
Webmaster of www.artbeast.de

Top
#101048 - 03/26/00 06:48 AM Re: Trying to write a routine....
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
Anytime - this forum is getting a bit stale. No one really asks perl questions.

Just a thought
_________________________
http://www.iamcal.com

Top
#101049 - 03/26/00 10:01 AM Re: Trying to write a routine....
Menno Offline
Junior Member

Registered: 03/20/01
Posts: 200
Well, that routine worked perfect, but now I want a little twist
I still want the routine to make a backup, but instead of emptying intries.file, it should be deleted entirly

Top
#101050 - 03/26/00 10:57 AM Re: Trying to write a routine....
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
Er - renaming it would have this affect.

Just a thought
_________________________
http://www.iamcal.com

Top
#101051 - 03/26/00 02:40 PM Re: Trying to write a routine....
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
Change this
open(ENT,">$path/to/entries.file");print ENT "n";close(ENT);
to
unlink "entries.file"

------------------
Thanks for reading!
Ilya
Administrator of Ubb Code Hackers Hideout
Moderator of UBB Hacks Finished
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks