Send mail at diferent dates..

the mail() function

Moderators: macek, egami, gesf

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

php...

Post by ruturajv » 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: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Post by Alexej Kubarev » Thu Dec 30, 2004 2:28 pm

what OS are you running?

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

Post by Alexej Kubarev » Fri Dec 31, 2004 2:30 pm

well...you can try writing a link... ive never used CPanel.. sorry.. :(

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

Post by ruturajv » 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

Who is online

Users browsing this forum: No registered users and 3 guests