Search found 6 matches

by codebuzz
Thu Apr 01, 2004 8:55 am
Forum: PHP - Code
Topic: calling php function
Replies: 12
Views: 1199

depends on the database you're using, you could set it so that the update-event is triggered whenever the database is updated. Not possible in mySQL, though. AFAIK should be possible in SQLite and Oracle, but have no experience with it. What kind of application are you coding? PHP/MySQL - Problem t...
by codebuzz
Thu Apr 01, 2004 8:54 am
Forum: PHP - Code
Topic: calling php function
Replies: 12
Views: 1199

wether or not you refresh the page you are still going to have to hit the DB to see if its been updated! If you are trying to ease up on your server i could see why you wouldnt want to reload, but if you are trying to ease up on the DB, it doesnt matter, just relaod, but have a file on your machine...
by codebuzz
Wed Mar 31, 2004 10:25 pm
Forum: PHP - Code
Topic: calling php function
Replies: 12
Views: 1199

well, the javascript can control how often the other PHP page is called. I don't even know if it is possible....I should just refresh the page, but I'd rather not have the database take a hit like that. Lets say this app is for about 200 people and if 100 are on and it refreshes every minute...that'...
by codebuzz
Wed Mar 31, 2004 6:24 pm
Forum: PHP - Code
Topic: calling php function
Replies: 12
Views: 1199

like...

have a javascript that opens a php page and that page sends back data to the original page for processing?????
by codebuzz
Wed Mar 31, 2004 5:18 pm
Forum: PHP - Code
Topic: calling php function
Replies: 12
Views: 1199

so ...is there any way to run another php script that can return a value to the main script that tells whether there was an update?
by codebuzz
Wed Mar 31, 2004 5:16 pm
Forum: PHP - Code
Topic: calling php function
Replies: 12
Views: 1199

calling php function

OK, got a couple of questions. I'm developing an app that will query a database and load a default page. I then want to periodically (every minute) be able to check if there have been any updates to the database...WITHOUT refreshing the page. Is this possible? Can you call a php function from javasc...