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 8227031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:58:53+00:00 2026-06-07T15:58:53+00:00

I have a PHP website in which, when a member visits a page, a

  • 0

I have a PHP website in which, when a member visits a page, a series of database maintenance actions are made.

For example, in a common page, I’ve included a PHP script which checks how many posts every user has made and updates the database giving them points accordingly.

The problem with this method is that my website has 100+ members, and I’m worried that my scripts start to slow down as my memberbase grows.

Is there any way to code a bot in PHP, so my database can be updated without the user’s intervention?

  • 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-06-07T15:58:55+00:00Added an answer on June 7, 2026 at 3:58 pm

    You should run a PHP file from within a cron job. Most PHP hosts including shared hosting provide cron access.

    With cron you can schedule a task to run on an interval basis. This PHP program will then go through and do the updating that you require. So… take the code you do now and move it into a seperate PHP file and then tell cron to run it maybe once an hour or whatever you deem to be the correct interval.

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

Sidebar

Related Questions

I have designed a website which uses AJAX. I have a PHP page named
I have a website which works with PHP on the server side. Users access
I have working website in PHP with a MySQL backend which has several tables
I have a php page inside a folder on my website. I need to
I have a problem with maintenance of my php based website. My website is
I have an existing PHP website which uses a considerable amount of jQuery and
I have a php-apache website on which I am trying to track download conversions
I'm creating a php website in which I have a document.php that basically takes
We have some folders on our website which are password protected through a PHP
I have a PHP website with a custom page routing system. A php script

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.