Hello,

I have a website for musicians where all users can post their ads for free.

I need a script that send an email for a member user when his ad is going to
be expired (let say after 30 days).

Any ideas ?

Sammy.

Recommended Answers

You'll need to setup a cron job to check when an ad will expire. For example you can add the creation date of the ad to the database, then check with the cron job for expiring ads.

The cron script can be just a regular PHP script, that is …

Jump to Post

All 4 Replies

You'll need to setup a cron job to check when an ad will expire. For example you can add the creation date of the ad to the database, then check with the cron job for expiring ads.

The cron script can be just a regular PHP script, that is called from cron.

You'll need to setup a cron job to check when an ad will expire. For example you can add the creation date of the ad to the database, then check with the cron job for expiring ads.

The cron script can be just a regular PHP script, that is called from cron.

Yes but the thing is that my site is runing on windows , not unix....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.