Send mail at diferent dates..

the mail() function

Moderators: egami, macek, gesf

Post Reply
User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Mon May 03, 2004 9:02 pm

php is script which is executed when a page is called....

hence its manual...

what you can do is set up a cron job... which invokes a "lynx" browser with url parameter as your address to the php script

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2213
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Thu Dec 30, 2004 2:28 pm

what OS are you running?
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2213
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Fri Dec 31, 2004 2:30 pm

well...you can try writing a link... ive never used CPanel.. sorry.. :(
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Sun Jan 02, 2005 8:53 am

* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of week (1 - 7) (monday = 1)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)

for every 1 hr you can...

Code: Select all

* */1 * * * lynx -dump http://domain.com/path/to/file.php

Post Reply