What you want is called a cron job and is already covered here:
More Related Contents:
- Prevent creating duplicate entries in PHP
- PHP Merging Row with same value (more than one column)
- PHP Pass variable to next page
- PHPDoc type hinting for array of objects?
- Having issue with matching rows in the database using PDO
- How do I return integer and numeric columns from MySQL as integers and numerics in PHP?
- How to pass variable number of arguments to a PHP function
- Paypal Access – SSL certificate: unable to get local issuer certificate
- php – How to force download of a file?
- Split string by new line characters
- AngularJS Upload Multiple Files with FormData API
- Compile a referenced LESS file into CSS with PHP automatically
- Updating from MYSQL to MYSQLI [duplicate]
- Bad Request. Connecting to sites via curl on host and system
- getting all values from h1 tags using php
- Generate PDF report from php
- UTF-8 encoding for subject in contact form email
- Why are “echo” short tags permanently enabled as of PHP 5.4?
- How do you make a string in PHP with a backslash in it? [closed]
- Single Value Mysqli [duplicate]
- POST Content-Length exceeds the limit
- How can I catch a “catchable fatal error” on PHP type hinting?
- How to populate dependable drop-down using Ajax and php [closed]
- Get next element in foreach loop
- Why do timestamps have a limit to 2038?
- Upper memory limit for PHP/Apache
- PHP7 with APCu – Call to undefined function apc_fetch()
- FTP upload file to distant server with CURL and PHP uploads a blank file
- Programmatically access currency exchange rates [closed]
- Read JSON Data Using PHP [duplicate]