Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6540783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:01:20+00:00 2026-05-25T11:01:20+00:00

I have a user table with date of birth. I need to send them

  • 0

I have a user table with date of birth. I need to send them email to wish for their birthday. When i use a php code it only sends them only when i execute that php file. How to trigger that automatically when the next day starts i.e 12:00 AM

And if there are more number of users on same birthday then more email has to be sent. which takes more time to execute the php. what if it takes more than the time allocated for one php file to execute. how to overcome this.

Note: Am running my own server with Ubuntu. Is there any packages i need to install to run the php script exactly when the day starts..?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:01:20+00:00Added an answer on May 25, 2026 at 11:01 am

    A cron job is the answer. I use Debian but I guess cron is in the default installation of Ubuntu. In case it isn’t, run in the console:

    sudo apt-get install cron
    

    If you want some kind of visual assistance you can also install gnome-schedule:

    sudo apt-get install gnome-schedule
    

    In order to see how to configure cron you can always check the man pages:

    man cron
    man crontab
    

    Once everything is set up you should set a cron job to call the PHP file. Here is an explanation on how to use PHP in command line mode

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an email subscription table and a user table. I need to combine
Let's say I have a table that has user_id, date, score, and every user
I have a User table that has all of their avatars saved in an
I have a user table with the user's birthday (YYYY-MM-DD) as well as age
I have a table User that stores user information - such as name, date
I have a BirthDate column in MySQL database table to store user's date of
I have a table like so: Table eventlog user | user_group | event_date |
I have the following table (simplified): user_id date hours 1 2012-03-01 5 2 2012-03-01
I have a table of purchases containing a user_id and a date_of_purchase. I need
I have a user table with a level column. The level column is numeric

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.