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

Help regarding timer.

Hello people.

Right now im sitting at work trying to figure out how to work with
time in php.

My problem is, Im working with a test which some of our foreign
costumers have to try to test their english skill.

The test is working great, and it looks awesome as well, but I have to
figure out a way to "force" the explorer/mozilla/whatever
browser-program to shut down the window after 60 minutes.

Description of current objectives.

Force browser-shutdown after 60 minutes and email result to user@host
disable right-clicking
Looking forward to hearing from you guys out there-
Jul 17 '05 #1
2 1597
krael wrote:
Hello people.

Right now im sitting at work trying to figure out how to work with
time in php.

My problem is, Im working with a test which some of our foreign
costumers have to try to test their english skill.

The test is working great, and it looks awesome as well, but I have to
figure out a way to "force" the explorer/mozilla/whatever
browser-program to shut down the window after 60 minutes.

Description of current objectives.

Force browser-shutdown after 60 minutes and email result to user@host
disable right-clicking
Looking forward to hearing from you guys out there-


Sorry, you can't do that in php. Once the browser has got the document
you have no control over it in php.

You could set up a timer in JavaScript and do form.submit() after 60
mins. You should also check the time of document delivery and submission
in php just in case someone finds a way to disable your timer.
Jul 17 '05 #2
sk********@ofir.dk (krael) wrote in message news:<38**************************@posting.google. com>...
Hello people.

Right now im sitting at work trying to figure out how to work with
time in php.

My problem is, Im working with a test which some of our foreign
costumers have to try to test their english skill.

The test is working great, and it looks awesome as well, but I have to
figure out a way to "force" the explorer/mozilla/whatever
browser-program to shut down the window after 60 minutes.

Description of current objectives.

Force browser-shutdown after 60 minutes and email result to user@host
disable right-clicking


nevermind.

I figured it out another way by using a session which made a timeout
after 3600 seconds, and then adding a javascript checking the time,
and when the time was done it would shutdown the window and email. Looking forward to hearing from you guys out there-

Jul 17 '05 #3

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

Similar topics

1
by: wukexin | last post by:
I write my own class Cfile, I want to know what about implement ctime().Who help me? My use function ctime, I sign it with $$$. my class Cfile: #------------------------ file.h...
9
by: tym | last post by:
HELP!!! I'm going round the twist with this... I have a VB6 application which is using DAO to access a database (Please - no lectures on ADO, I know what I'm doing with DAO!!) Ok, problem...
2
by: Alfonso Morra | last post by:
Hi, I am writing a timer class that I want to be able to get to notify me (via a callback func), when a specified interval has elapsed. I have most of the timer functionality figured - however,...
6
by: Marie-Christine Bechara | last post by:
I have a Windows Service project in C#.net and a timer during which a certain function must be called. Timer interval is say 3 minutes. The function in the timer_Elapsed event. Problem is when...
3
by: archana | last post by:
Hi all, I have one confusion regarding threading in windows service which is developed in c#. What i am doing is on 'onstart' event i am starting one thread. In thread procedure i am...
2
by: cylin | last post by:
Hi, I am currently doing a project regarding image processing. I had facing problem writing C++ code to calculate time taken to execute a function. Can somebody help me on this. thanks. ...
11
by: Zilla | last post by:
I have the following simple program. I just want to be able to do math operations (+, -, =)on Timer sublcasses, but want to handle cases where either rhs or lhs is an intrinsic value, However, the...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
2
by: inlovewithmusic | last post by:
Hi , I have a simple question regarding this class, in a program if you create two timers and start them one by one, do each of the times use a separate thread automatically ?, or will they be...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: 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...
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: 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)...
0
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...
0
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

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.