Jump to content

Serverside Autoscripts and Databases


wayne0126

Recommended Posts

I don't know if these were the right terms for the title but there is something I'm not sure about. Is there a way for a script to automatically execute by itself by the server without any involvement of a user?

 

Say for example,

 

"At 5:00 pm every day, the server will automatically add 1 new row of information to the database table. After 7 days, there should now be at least 7 rows within the table."

 

I'm not sure if thats the lingo you guys use around here or if this is the style how to explain things. But really just what Im asking is if a server can perform a php script by itself at a certain time every day that will make some sort of change to the database without the influence of say an administrator. And also, if this is possible, will it be difficult to do, and what exactly would it look like to create something like this.

Link to comment
https://forums.phpfreaks.com/topic/114261-serverside-autoscripts-and-databases/
Share on other sites

sure with a mixture of javascript and php.. or some ajax that seems very plauseable

 

 

you'll basically make a webpage to leave up ALL THE TIME and use javascript or something similar to keep track of time.. everytime the clock hits that time use JS to fire a page.. and have the php code run off that page to make your entries into the database.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.