Lifelesspeople.com

 Forum FAQsForum FAQs  Knowledge BaseKnowledge Base  RulesRules   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   HostingHosting   RegisterRegister 
 DonateDonate   WikiWiki   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

log file type thing

 
Lifelesspeople.com Forum Index -> Web Architects' Abode
Post new topic   Reply to topic View previous topic :: View next topic  
Author Message
Desbrina
Jadeite


Joined: 11 Jun 2005
Posts: 3010
Location: Earth

PostPosted: Tue Dec 18, 2007 4:46 pm    Post subject: log file type thing Reply with quote

Currently i have a script that runs every 15 mins via cron which emails me.
I'm looking at an alternative so that i dont get lots of emails every day. Something like a file being writting to, showing the script name (since more than one is ran) and the date/time it was ran

Is there a way of doing this?
_________________
Midnight Tempest - A Sailor Moon TCG
Balanced Force - A Star Wars TCG
Caretaker - A Star Trek Voyager TCG
My Stories
Back to top
 
Pie32
Not Banned


Joined: 17 Mar 2005
Posts: 1443
Location: Lost in 84

PostPosted: Tue Dec 18, 2007 7:01 pm    Post subject: Reply with quote

You can open a file and write to it with PHP. These are the functions that you'll need:

fopen
fwrite
_________________
[img]http://luneknight.com.ru/counter.jpg[/img]
Random Battle: [img]http://luneknight.com.ru/l.jpg[/img] vs. [img]http://luneknight.com.ru/r.jpg[/img]
Back to top
 
exsanguination
Forum Regular


Joined: 27 Apr 2005
Posts: 418
Location: Australia

PostPosted: Mon Jan 07, 2008 5:26 pm    Post subject: Reply with quote

Pie32 wrote:
You can open a file and write to it with PHP. These are the functions that you'll need:

fopen
fwrite


Why?

Just pipe the output into a file.
Back to top
 
LP-SolidRaven
Dictator of the Dump


Joined: 06 Jun 2004
Posts: 7359
Location: The cheese is made out of moon

PostPosted: Tue Jan 08, 2008 11:47 am    Post subject: Reply with quote

Simply use something like:
command > file.log
_________________
Quote:

<bart416> I just realized something
<bart416> we celebrate the fact that this piece of rock made one rotation around a glowing ball of plasma that is kept together due to its own gravity well
<njsg> HAPPY NEW YEAR
<Easter> ^^
Back to top
 
Display posts from previous:   
Post new topic   Reply to topic    Lifelesspeople.com Forum Index -> Web Architects' Abode All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Home | Hosting | News | Forum | Links | System Status | About | Archive | Donate ]
Powered by phpBB © 2001, 2002 phpBB Group
All trademarks and copyrights on this page are owned by their respective owners. Posts and comments are owned by the poster. Everything else © 2001 - 2007 Lifelesspeople.com