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.

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.