473,326 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Run a PHP script in background of a Site in every 10 Seconds

I need to run a script in every 10 seconds in background of the site
of 10-15 php pages.
So how do i activate that script?
Is there a code to be embedded in every php page so that the script
got run after every 10 seconds.

I need not to monitor that script.
This script will make some comparisions and then make changes in the
database.
Please reply as this is very neccesary for completion of my project.

Regards
Rahi Jain
Feb 17 '08 #1
7 3769
On Feb 17, 3:29 pm, "rahismail...@gmail.com" <rahismail...@gmail.com>
wrote:
I need to run a script in every 10 seconds in background of the site
of 10-15 php pages.
So how do i activate that script?
Is there a code to be embedded in every php page so that the script
got run after every 10 seconds.

I need not to monitor that script.
This script will make some comparisions and then make changes in the
database.
Please reply as this is very neccesary for completion of my project.

Regards
Rahi Jain
its not about php use this html code -<meta http-equiv='refresh'
content='10'>
Feb 18 '08 #2
On Feb 18, 3:43 pm, Betikci Boris <pard...@gmail.comwrote:
On Feb 17, 3:29 pm, "rahismail...@gmail.com" <rahismail...@gmail.com>
wrote:
I need to run a script in every 10 seconds in background of the site
of 10-15 php pages.
So how do i activate that script?
Is there a code to be embedded in every php page so that the script
got run after every 10 seconds.
I need not to monitor that script.
This script will make some comparisions and then make changes in the
database.
Please reply as this is very neccesary for completion of my project.
Regards
Rahi Jain

its not about php use this html code -<meta http-equiv='refresh'
content='10'>
I think it will work but i need script to be run in back ground.
This way i have to keep that page open all the time during the trading
hours ( Privately on one node).
if any other solution didnt show up i have to use this code and
method.
Regards
Rahi
Feb 18 '08 #3
ra**********@gmail.com wrote:
On Feb 18, 3:43 pm, Betikci Boris <pard...@gmail.comwrote:
>On Feb 17, 3:29 pm, "rahismail...@gmail.com" <rahismail...@gmail.com>
wrote:
>>I need to run a script in every 10 seconds in background of the site
of 10-15 php pages.
So how do i activate that script?
Is there a code to be embedded in every php page so that the script
got run after every 10 seconds.
I need not to monitor that script.
This script will make some comparisions and then make changes in the
database.
Please reply as this is very neccesary for completion of my project.
Regards
Rahi Jain
its not about php use this html code -<meta http-equiv='refresh'
content='10'>

I think it will work but i need script to be run in back ground.
This way i have to keep that page open all the time during the trading
hours ( Privately on one node).
if any other solution didnt show up i have to use this code and
method.
Regards
Rahi
Which suffers from the problems I described above...

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Feb 18 '08 #4
On Feb 18, 1:00 pm, "rahismail...@gmail.com" <rahismail...@gmail.com>
wrote:
On Feb 18, 3:43 pm, Betikci Boris <pard...@gmail.comwrote:
On Feb 17, 3:29 pm, "rahismail...@gmail.com" <rahismail...@gmail.com>
wrote:
I need to run a script in every 10 seconds in background of the site
of 10-15 php pages.
So how do i activate that script?
Is there a code to be embedded in every php page so that the script
got run after every 10 seconds.
I need not to monitor that script.
This script will make some comparisions and then make changes in the
database.
Please reply as this is very neccesary for completion of my project.
Regards
Rahi Jain
its not about php use this html code -<meta http-equiv='refresh'
content='10'>

I think it will work but i need script to be run in back ground.
This way i have to keep that page open all the time during the trading
hours ( Privately on one node).
if any other solution didnt show up i have to use this code and
method.
Regards
Rahi
Or you can embed a peforming script to dense used page in general..
Feb 18 '08 #5
ra**********@gmail.com wrote:
On Feb 18, 3:43 pm, Betikci Boris <pard...@gmail.comwrote:
>On Feb 17, 3:29 pm, "rahismail...@gmail.com" <rahismail...@gmail.com>
wrote:
>>I need to run a script in every 10 seconds in background of the site
of 10-15 php pages.
So how do i activate that script?
Is there a code to be embedded in every php page so that the script
got run after every 10 seconds.
I need not to monitor that script.
This script will make some comparisions and then make changes in the
database.
Please reply as this is very neccesary for completion of my project.
Regards
Rahi Jain
its not about php use this html code -<meta http-equiv='refresh'
content='10'>

I think it will work but i need script to be run in back ground.
This way i have to keep that page open all the time during the trading
hours ( Privately on one node).
if any other solution didnt show up i have to use this code and
method.
Regards
Rahi
Use Ajax, and use setTimeout in the javascript.
Feb 18 '08 #6
On Feb 17, 5:29 am, "rahismail...@gmail.com" <rahismail...@gmail.com>
wrote:
I need to run a script in every 10 seconds in background of the site
of 10-15 php pages.
So how do i activate that script?
Is there a code to be embedded in every php page so that the script
got run after every 10 seconds.

I need not to monitor that script.
This script will make some comparisions and then make changes in the
database.
Please reply as this is very neccesary for completion of my project.

Regards
Rahi Jain
I agree with Stuckle, use "cron (Linux/Unix) or scheduled task
(Windows). "
to schedule the the execution on php scripts.. you can set when it
should run.
how often.. etc.. but the fact is, you really need dedicated server..
and some vps offers
this service too.. you can setup cron by CPANEL or root(SSH), but i
dont know with plesk..

but if really dont have such root access on your server, there is
another way..
you only need a dedicated computer on your side.. 24/7 open.. only
need a desktop application
that manipulate your data remotely, is easy to remotely manipulate the
mysql (just allow your computer IP) you can make a desktop application
that can act also a php script, the same function, and process..
program it to repeat every 10 seconds.. (the problem is the speed of
the internet)

or a desktop application that call a hidden php script from the server
every 10 seconds..
each call, php perform such task..
Feb 19 '08 #7
On Feb 19, 1:29 pm, "radmissio...@gmail.com" <radmissio...@gmail.com>
wrote:
On Feb 17, 5:29 am, "rahismail...@gmail.com" <rahismail...@gmail.com>
wrote:
I need to run a script in every 10 seconds in background of the site
of 10-15 php pages.
So how do i activate that script?
Is there a code to be embedded in every php page so that the script
got run after every 10 seconds.
I need not to monitor that script.
This script will make some comparisions and then make changes in the
database.
Please reply as this is very neccesary for completion of my project.
Regards
Rahi Jain

I agree with Stuckle, use "cron (Linux/Unix) or scheduled task
(Windows). "
to schedule the the execution on php scripts.. you can set when it
should run.
how often.. etc.. but the fact is, you really need dedicated server..
and some vps offers
this service too.. you can setup cron by CPANEL or root(SSH), but i
dont know with plesk..

but if really dont have such root access on your server, there is
another way..
you only need a dedicated computer on your side.. 24/7 open.. only
need a desktop application
that manipulate your data remotely, is easy to remotely manipulate the
mysql (just allow your computer IP) you can make a desktop application
that can act also a php script, the same function, and process..
program it to repeat every 10 seconds.. (the problem is the speed of
the internet)

or a desktop application that call a hidden php script from the server
every 10 seconds..
each call, php perform such task..
Jerry is right as always.
Yes i will be using cron to solve this problem.
I dont have a dedicated server but it has Cpanel(So i can apply cron
feature).
Feb 19 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: krystoffff | last post by:
Hi all ! I've got a very weird problem ! I was trying to make my PHP script to send emails to every subscribed member to go faster (each email takes 1 or 2 seconds to be sent !) so I tried to...
3
by: P Wolpert | last post by:
This is my first post. I hope I don't sound stupid. I have a script conflict when I put two scripts on one page. Both scripts will work if I use one at a time but the menu button script will not...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
13
by: Paul | last post by:
Hi I have a .net application that shows the start page for a few seconds and then goes to another start page. I was wondering if it would be possible to put a count on the page to let the user...
13
by: wattersmt | last post by:
Hello, I am trying to write a python cgi that calls a script over ssh, the problem is the script takes a very long time to execute so Apache makes the CGI time out and I never see any output. ...
4
by: vunet.us | last post by:
Hi, I found a bug in IE6, though it is known already. If I have a CSS background property set to some image, such as background:url(myimg.gif);, and I apply this property to some html element,...
2
by: Matthew Pulis | last post by:
hi guys, well basically I am writing a simple routing script. It reads data from an XML and from a PostgreSQL. Some of the data is being randomized, and every now and then some data is echoed...
5
by: This | last post by:
I have a pretty basic emailing script that sends a relatively small number (150) of html emails. The emails are compiled, personalised from a mysql db subscribers list, and sent using mail() -...
14
by: asdf | last post by:
I have a python script whose output i want to dynamically display on a webpage which will be hosted using Apache. How do I do that? thanks
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.