Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


hi here one small project given to me in an software
company during interview.

one page that would count down till 9pm (today means every
day before 9pm it would count down to zero) this means there
will show how many mins. sec. and hours are left till 9pm so
it would be like 1 hr 20 mins 23 sec. then it up count down
every sec and then show 1hr 20mins 22sec left till 9pm once
the count down reaches zero it would show a flesh player
video will autostart. the flash player will be from
http://www.longtailvideo.com/players/jw-flv-player/
(the player is embed into the page.)

that same page will track to see if they have already seen
the video using php sessions then if they go back to that
page it would redirect them to a new page saying that they
have already wathed the video.



hi here one small project given to me in an software company during interview. one page that ..

Answer / vishal

A combination of javascript and php will have to be used.
From php we can get the time at the server side and pass
this information to a javascript variable. Then the
javascript will start a counter showing a countdown display
for the remainder of the time. After countdown reaches zero,
the javascript will reload the page and the php code will
run again. This time the php code will check for a cookie
which has been stored previously with the user. All the
information will be stored in the cookie regarding whether
the video has been watched for today or not. If not, then
the video will play automatically. if the cookie says the
video has been viewed then output can be a message that "you
have already viewed the video."

Is This Answer Correct ?    13 Yes 0 No

Post New Answer

More PHP Interview Questions

Is null in php?

0 Answers  


Please explain is it possible to use com component in php?

0 Answers  


What is the diffrence between GET,POST and REQUEST Method.

7 Answers   Acquity Software,


Do while loops php?

0 Answers  


What is Joomla?

5 Answers   T3 Softwares, Zend,


What is use of isset function in php?

0 Answers  


What is the difference between $message and $$message?

12 Answers   BSPL, eGrove, i-Net Solution,


What is interface? Why it is used?

0 Answers  


Explain what is memcache?

0 Answers  


Shopping cart online validation i.e. how can we configure Paypal, etc.?

1 Answers   INDUS,


What is meant by urlencode and urldocode?

2 Answers  


Is there any function to find repeated value in an array? What is w2 standard

1 Answers  


Categories