Follow us on Twitter!
The measure of a mans life is not how well he dies, but how well he lives.
Thursday, April 24, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 27
Guests Online: 22
Members Online: 5

Registered Members: 82895
Newest Member: kevy90
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

Php 2 minute countdown timer


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 28-07-07 22:32
Heyy Guys, I need a simple php countdown timer which after two minutes does event() or whatever i tell it to.
And i want it to be live (shows how much time has gone etc.)...
Nothing too fancie just uber basic ...
Any suggestions would be awsome!!!!
Thanks
Dotti.


Author

RE: Php 2 minute countdown timer


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 28-07-07 23:03
ah dont worry, i tried it and the site froze and so did my pc, i thankyou anyway! im sure ill find it usefull oneday Pfft


Author

RE: Php 2 minute countdown timer


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 28-07-07 23:19
couldnt you just use sleep() ?

should work for this...except like showing the time

and wont freeze anything i dont think

you could do the countdown in jscript though

http://us3.php.ne. . .

hope this helpsSmile

tits (o )( o)




Edited by on 29-07-07 00:05
Author

RE: Php 2 minute countdown timer


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 28-07-07 23:50
this is what AJAX is for....


Author

RE: Php 2 minute countdown timer


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 28-07-07 23:55
mr noob wrote:
this is what AJAX is for....


or that lol

my way is the lazy way Pfft


Author

RE: Php 2 minute countdown timer


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 28-07-07 23:59
and sleaz... i tried not to laugh when you said "make js echo the countdown before the sleep". good luck to you, trying to execute js before php Pfft


Author

RE: Php 2 minute countdown timer


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-07-07 00:05
mr noob wrote:
and sleaz... i tried not to laugh when you said "make js echo the countdown before the sleep". good luck to you, trying to execute js before php Pfft


lol...goddamnit....

gotta think before i type...

ill fix that right nowPfft


Author

RE: Php 2 minute countdown timer


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-07-07 00:09
<script>
var s=120;
func count() {
if(s>0) {
setTimeout('document.f.d.value=s;s--;count();',1000);
} else {
ajaxFunction();
}
}
count();
</script>
<form name="f">
<input type="text" name="d">
</form>

tada!
edit
shit forgot the sleep :P




Edited by on 29-07-07 00:12
Author

RE: Php 2 minute countdown timer


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-07-07 00:11
well wait couldnt you just do

Code

<script src="time_countdown_thing.js"></script>

<?
sleep(120);

echo "stufff after it sleeps";

?>





and the time would show....

so im right...

you just have it show the time and then do the stuff after it sleeps

i just said it wrong...lol...im problably still saying it wrong but you get what i mean

either that or im retarded:)

but your way is still the best lol...

i just dunno ajax




Edited by on 29-07-07 00:12
Author

RE: Php 2 minute countdown timer


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-07-07 00:13
um... you do know nothing is processed during sleep() so you couldnt echo the time... fixed my script above ^^


Author

RE: Php 2 minute countdown timer


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-07-07 00:15
lol ive never used sleep...

dunno if everything on the page doesnt get processed or not

idk...

just thought sleep could be used in this situation:angry:


Author

RE: Php 2 minute countdown timer


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-07-07 11:24
mr noob wrote:
<script>
var s=120;
func count() {
if(s>0) {
setTimeout('document.f.d.value=s;s--;count();',1000);
} else {
ajaxFunction();
}
}
count();
</script>
<form name="f">
<input type="text" name="d">
</form>


eh thanks ... but i cant work it...?