/    Sign up×
Community /Pin to ProfileBookmark

timer-controlled input?

Hi all,
I really need some help 😮

I have to work at a project in a very short time and I do not know where to start from! Please help me 😮

I have to create a website for a teacher who wants to ask some students to connect to the internet at the same time, watch a distance lesson in real time (streaming video, but I am not working at that) and give immediate feedback during the lesson, so she can try to modify the lesson if people are not too interested.

Before worrying about input analysis and output, I have a much bigger problem.
How can I control the input (20 values for each connected student) with a timer? Ideally I would need a button the teacher clicks, which starts a timer, so that before it starts no input is saved in the database. Also, I must save data every minute and for 20 minutes, after which no data is saved.
Also, I would need a ‘stop’ button as well, in case the ‘start’ button has been clicked by mistake. Please save me ?

Have a nice Sunday everyone!!! ?

PS. I shouldn’t worry about that yet, but is there a way to dynamically generate bar graphs with the data of the database?
Thanks a lot ?

to post a comment
PHP

7 Comments(s)

Copy linkTweet thisAlerts:
@temp_user123Jul 08.2007 — Timer-controlled input is not really suited to PHP, per se -- being server-side only -- especially the "every minute" part. Sounds like you want JavaScript and, specifically, AJAX:

http://jibbering.com/2002/4/httprequest.html
Copy linkTweet thisAlerts:
@happysmileauthorJul 08.2007 — Thank you very much for your answer. I'd better learn something about AJAX then. Thanks a million!!! ?
Copy linkTweet thisAlerts:
@rootJul 08.2007 — PHP can be used to "PUSH" data to a browser connection at regular intervals.
Copy linkTweet thisAlerts:
@temp_user123Jul 08.2007 — PHP can be used to "PUSH" data to a browser connection at regular intervals.[/QUOTE]
Does that involve using a META refresh, though? At least, that is the only way I know of to accomplish what you're describing. As such, the user may not like getting interrupted for those "regular intervals."
Copy linkTweet thisAlerts:
@rootJul 09.2007 — Well I cant remember but I doubt it, you would need to look it up on the www.php.net site as I came across something about using PHP to delay output and also push content updates.
Copy linkTweet thisAlerts:
@temp_user123Jul 09.2007 — I searched but didn't come up with anything.
Copy linkTweet thisAlerts:
@happysmileauthorJul 09.2007 — PHP can be used to "PUSH" data to a browser connection at regular intervals.[/QUOTE]

Hi!!

I am reading some AJAX for real dummies tutorials in internet and it seems (is) very useful. ?

Anyway I am extremely interested in sending data at regular intervals with php. I couldn't find information actually, so please if anyone knows more about that, let me know!

Anyway, thank you all for helping me :o
×

Success!

Help @happysmile spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...