Current location: Hot Scripts Forums » Programming Languages » PHP » general question


general question

Reply
  #1 (permalink)  
Old 01-11-04, 04:51 PM
delerium's Avatar
delerium delerium is offline
Newbie Coder
 
Join Date: Jan 2004
Location: pittsburgh
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
general question

just a general question. I need to create a web page that will collect and store user input, then email the stored data to another user in a formated text, once a week. How would i go about doing the emailing part? if anyone has any suggestions that would be great. thanks again.
Reply With Quote
  #2 (permalink)  
Old 01-12-04, 12:27 AM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hi there,

Quote:
Originally Posted by delerium
...... How would i go about doing the emailing part?
It seems like you can use a cron job for that purpose. Write a script that retrieves corresponding message (input that is stored in db, file, or whatever you may use), put it into your desired format-template, and mail() it.

Then, excute this script once a week by setting up a cron job.

As for setting up a cron, you can refer to this tutorial:

PHP Freaks: Automate Your PHP Site Using CRON
http://www.phpfreaks.com/print.php?c...rial&tut_id=28

HTH.

P.S. Do you like Delerium? I love their music.
__________________
Blavv =|
Reply With Quote
  #3 (permalink)  
Old 01-12-04, 02:00 AM
delerium's Avatar
delerium delerium is offline
Newbie Coder
 
Join Date: Jan 2004
Location: pittsburgh
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
sounds good so far...

well, contrab sounds like the best way to go. how do i access it, though. right now i dont have a host. im running apache, mysql, and php on my home box. this way i can develop and test my pages before i post them. so, is there a way to set up CRON on my personal computer so that i can test my scripts?
by the way, i do like the band. its good stuff lol
Reply With Quote
  #4 (permalink)  
Old 01-12-04, 04:11 AM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hi again,

Cron is a unix thing, but there are several ways to do it on Windows with an emulator(?) like cygwin (http://www.cygwin.com/) or something similar. I also heard that Microsoft even has alike unix tools, too, so I guess you can pick what you feel is right. Search for terms like "Unix on windows", etc, and it shouldn't be very difficult to find them.

Good luck!

P.S. I felt Chimera was a bit different from the previous ones in that they've added more of pop tunes, rather than the traditional gospel/choir kind of sounds. It was, however, an excellent move!
__________________
Blavv =|
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ADO Recordsets question vbNovice Visual Basic 0 12-22-03 10:25 PM
Perl-PHP software Copyright question! kevin PHP 8 10-29-03 08:03 AM
preg_match question Dj_Farout PHP 0 10-27-03 05:51 PM
Stupid question ( i think.. ) !!! Giullare ASP 2 10-01-03 02:21 AM
Web Stat Question ossi44 New Members & Introductions 2 06-13-03 09:36 AM


All times are GMT -5. The time now is 08:26 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.