Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 02-22-2008, 08:09 PM sleep()
Sharon_leic's Avatar
Super Talker

Posts: 115
Name: Sharon
Location: Leicester, uk
Trades: 0
I know php is server side but..

if i use the

sleep()

command, will that make the script sleep on server side or client side?

i need to run a php script but have pause on client side only .. just for visual affects

thanks

Sharon x
__________________
mysql_connect("localhost", "brain", "sharon") or die(mysql_error());
mysql error: brain doesn't exist!

Last edited by Sharon_leic; 02-22-2008 at 08:27 PM..
Sharon_leic is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-22-2008, 08:50 PM Re: sleep()
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
PHP sleep will pause on server side, but all output sent will already be sent to the current point from the sleep command (although the client browser may not be displaying it) if output buffering is not enabled.

Sounds like you want to do a javascript timeout sleep.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 02-22-2008, 08:54 PM Re: sleep()
Sharon_leic's Avatar
Super Talker

Posts: 115
Name: Sharon
Location: Leicester, uk
Trades: 0
oh there's a good idea
i was just playing about with them to for a javascript function i was trying to make.. although its not playing proper yet lol

thanks

Shaz x
__________________
mysql_connect("localhost", "brain", "sharon") or die(mysql_error());
mysql error: brain doesn't exist!
Sharon_leic is offline
Reply With Quote
View Public Profile
 
Old 02-26-2008, 12:01 AM Re: sleep()
Novice Talker

Posts: 6
Trades: 0
yes, just don't search to hard for a js sleep function. What you usually do is get the current seconds, and while (current seconds < current seconds + your sleeping seconds) {just wait}.
iliketocode is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to sleep()
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17147 seconds with 12 queries