473,322 Members | 1,671 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,322 software developers and data experts.

Infinite Script

I need to make a script that whenever somethin is added to the db, it
will run and grab those info. Worth sayin that there's no time limit
for the db data addition.

I was planning of makin a script that runs infinitly every 0.25 seconds
and break then runs again.

If you have any ideas please inlighten me.

Oct 10 '05 #1
4 1546
Maximus wrote:
I need to make a script that whenever somethin is added to the db, it
will run and grab those info. Worth sayin that there's no time limit
for the db data addition.

I was planning of makin a script that runs infinitly every 0.25 seconds
and break then runs again.

If you have any ideas please inlighten me.


Which database? What does it need to do?

Sounds like you need a trigger.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Oct 10 '05 #2

Jerry Stuckle wrote:
Maximus wrote:
I need to make a script that whenever somethin is added to the db, it
will run and grab those info. Worth sayin that there's no time limit
for the db data addition.

I was planning of makin a script that runs infinitly every 0.25 seconds
and break then runs again.

If you have any ideas please inlighten me.


Which database? What does it need to do?

Sounds like you need a trigger.

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

Exactly,

I need a 24/7 trigger
the trigger is a PHP script
but i don't know how to make it go 24/7 other than using a cron job.

any suggestions?

Oct 10 '05 #3
Maximus wrote:
Jerry Stuckle wrote:
Maximus wrote:
I need to make a script that whenever somethin is added to the db, it
will run and grab those info. Worth sayin that there's no time limit
for the db data addition.


Which database? What does it need to do?

Sounds like you need a trigger.


Exactly,

I need a 24/7 trigger
the trigger is a PHP script
but i don't know how to make it go 24/7 other than using a cron job.

He means an SQL trigger. Various RDBMS support triggers, e.g. MySQL
5.0.2+, MS SQL Server, PostgreSQL.

The idea of a trigger is that the database server itself runs a
sequence of instructions whenever a record is inserted, updated or
deleted.

--
Oli

Oct 10 '05 #4
Maximus wrote:
Jerry Stuckle wrote:
Maximus wrote:
I need to make a script that whenever somethin is added to the db, it
will run and grab those info. Worth sayin that there's no time limit
for the db data addition.

I was planning of makin a script that runs infinitly every 0.25 seconds
and break then runs again.

If you have any ideas please inlighten me.


Which database? What does it need to do?

Sounds like you need a trigger.

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


Exactly,

I need a 24/7 trigger
the trigger is a PHP script
but i don't know how to make it go 24/7 other than using a cron job.

any suggestions?


No, a database trigger. Many databases support the ability to execute
code which are "triggered" by actions in the database.

Again - what database? What does it need to do?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Oct 10 '05 #5

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

Similar topics

1
by: Marcus Liddle | last post by:
<newbie hat> Hi I'm trying to get a really simple python program to run a bash testing script and kill itself if its been running to long (ie infinite loop) create the thread object - test...
2
by: Bartosz Wegrzyn | last post by:
I use onblue event to validate fields in my form. I do this onblur="return isname()" and so so ... I have one form with 20 fields. My problem is that when the focus is for example on the...
43
by: Gremlin | last post by:
If you are not familiar with the halting problem, I will not go into it in detail but it states that it is impossible to write a program that can tell if a loop is infinite or not. This is a...
5
by: mailpitches | last post by:
Hello, Is there any way to kill a Javascript infinite loop in Safari without force-quitting the browser? MP
3
by: Stewart | last post by:
Dear javascripters, Through a frustrating afternoon of debugging I appear to have discovered something: Setting location.hash to an empty string in the global namespace (not inside a...
7
by: Kewlpack | last post by:
Okay - this is stumping me. I've used .Net since 1.0 release and never had this trouble before... In one of my new projects, if I enable the SmartNavigation="True" in the Page...
2
by: alxasa | last post by:
Hi, I have a setInterval which executes its command every 10 seconds in a infinite loop. I've got something real basic like: var processes=0; function startme(){ if(stopthisloop>1)
19
by: Richard | last post by:
Hi All, I copied a script example from http://www.irt.org/script/640.htm into a local .html file. I opened that file first in HTML-kit, which hung (in an infinite loop, I think) when I...
44
by: James Watt | last post by:
can anyone tell me how to do an infinite loop in C/C++, please ? this is not a homework question .
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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.