Re: [PHP] PHP Interview questions and how to pass parameters to .js files

2003-09-02 Thread murugesan
I think this program will work under the condition that the fault one is heavier in weight, but the case is that it may be lighter OR heavier. Ok enough of php interview questions. I need to pass a value to a function in .js file which has been linked in a php file which in turn has been included

Re: [PHP] PHP Interview questions

2003-08-29 Thread murugesan
PROTECTED] Sent: Friday, August 29, 2003 2:55 AM Subject: RE: [PHP] PHP Interview questions snip Can you do it programmitically (with pseudo-code)? After all, we need to keep this on-topic :) /sip not pseudo code and it could definatley be cleaned up or done better but her is my quick try

Re: [PHP] PHP Interview questions

2003-08-29 Thread David T-G
murugesan, et al -- ...and then murugesan said... % % In a group of 12 eggs only one is having weight less or more. % Can we have a program to find the egg, provided we have to weigh only three % times with a weighing machine with two pans,without using weights. *Without* a balance scale?

Re: [PHP] PHP Interview questions

2003-08-29 Thread Pete James
to find the egg, provided we have to weigh only three times with a weighing machine with two pans,without using weights. -murugesan - Original Message - From: Matt Matijevich [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 29, 2003 2:55 AM Subject: RE: [PHP] PHP Interview questions

RE: [PHP] PHP Interview questions

2003-08-28 Thread Jay Blanchard
[snip] However, Curt does bring up a good pointgiven a real world situation create the decision logic (in code format) that demonstrates you grep the path needed to arrive at a conclusion. As many of us model business processes this is a valid method for determining familiarity with the

RE: [PHP] PHP Interview questions

2003-08-28 Thread Eyles, Richard
[snip] You come to a fork in the road. One fork takes to to Utopia (where you'd like to go) and the other takes you to the Black Forest (where you definitely do not want to go). There are two men standing there. You know that one always tells the truth, the other always liesbut you do not know

RE: [PHP] PHP Interview questions

2003-08-28 Thread Jay Blanchard
[snip] Which road would the other man point to if I asked him the way to Utopia? [/snip] Can you do it programmitically (with pseudo-code)? After all, we need to keep this on-topic :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Interview questions

2003-08-28 Thread Brian S. Drexler
Oh manit is WAY too early for a question like this... -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 7:31 AM To: Jay Blanchard; Curt Zirzow; PHP General Subject: RE: [PHP] PHP Interview questions [snip] However, Curt does bring up

RE: [PHP] PHP Interview questions

2003-08-28 Thread Matt Matijevich
snip Can you do it programmitically (with pseudo-code)? After all, we need to keep this on-topic :) /sip not pseudo code and it could definatley be cleaned up or done better but her is my quick try at it echo We are walking to up to a fork in the road.br /; $randval = rand(1, 500); $randval2 =

Re: [PHP] PHP Interview questions

2003-08-27 Thread Gabriel Guzman
On Tue, 2003-08-26 at 11:35, Curt Zirzow wrote: * Thus wrote Richard Baskett ([EMAIL PROTECTED]): on 8/26/03 9:57 AM, Robert Cummings at [EMAIL PROTECTED] wrote: This smells like a trick question... Are the switches connected to the same light bulb? You've only mentioned one light

Re: [PHP] PHP Interview questions

2003-08-27 Thread CPT John W. Holmes
From: Curt Zirzow [EMAIL PROTECTED] toggle_light(1); sleep(120); toggle_light(1); toggle_light(2); move('self', 'room/'); if ($lightbulb['temp'] $room['temp']) { echo switch #1; } elseif ($lightbulb['ison']) { echo switch #2; } else { echo switch #3; } hm.. i had to keep

RE: [PHP] PHP Interview questions

2003-08-27 Thread Martin Towell
it takes for a light bulb to cool down) Martin -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, 27 August 2003 5:35 AM To: Curt Zirzow; PHP General Subject: Re: [PHP] PHP Interview questions From: Curt Zirzow [EMAIL PROTECTED] toggle_light(1

Re: [PHP] PHP Interview questions

2003-08-27 Thread Curt Zirzow
* Thus wrote Gabriel Guzman ([EMAIL PROTECTED]): On Tue, 2003-08-26 at 11:35, Curt Zirzow wrote: * Thus wrote Richard Baskett ([EMAIL PROTECTED]): on 8/26/03 9:57 AM, Robert Cummings at [EMAIL PROTECTED] wrote: unfortunately, this won't work... you need to loop through the lightbulbs...

Re: [PHP] PHP Interview questions

2003-08-27 Thread Ivo Fokkema
Gabriel Guzman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 2003-08-26 at 10:00, CPT John W. Holmes wrote: PHP is server side, so it obviously cannot control light bulbs. Use javascript. maybe the lightbulbs are connected to the server :) as seems to be the case right

RE: [PHP] PHP Interview questions

2003-08-27 Thread Jay Blanchard
[snip] toggle_light(1); sleep(120); toggle_light(1); toggle_light(2); move('self', 'room/'); if ($lightbulb['temp'] $room['temp']) { echo switch #1; } elseif ($lightbulb['ison']) { echo switch #2; } else { echo switch #3; } hm.. i had to keep it OT somehow :) [/snip] :7) Curt. However,

Re[2]: [PHP] PHP Interview questions

2003-08-27 Thread Tom Rogers
Hi, Wednesday, August 27, 2003, 9:48:38 PM, you wrote: JB [snip] JB toggle_light(1); JB sleep(120); JB toggle_light(1); JB toggle_light(2); JB move('self', 'room/'); JB if ($lightbulb['temp'] $room['temp']) { JB echo switch #1; JB } elseif ($lightbulb['ison']) { JB echo switch #2; JB }

RE: Re[2]: [PHP] PHP Interview questions

2003-08-27 Thread Jay Blanchard
[snip] JB You are presented with three crates. One is labled 'apples', one is JB labled 'oranges', one is labled 'apples and oranges'. The lables have JB been mis-applied with none of the lables being on the correct crate. To JB be perfectly clear ( :7) Brian! ) one crate contains apples, one JB

RE: Re[2]: [PHP] PHP Interview questions

2003-08-27 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] on Wednesday, August 27, 2003 9:13 AM said: You are taking a fruit from the crate labeled apples and oranges, right? If so, you would be correct. Well done! I hate not being able to figure these things out. :( ME SAD! c. -- PHP General Mailing

[PHP] PHP Interview questions

2003-08-26 Thread Micheal Harris
Hello All, I am in the process of hiring someone that needs to have extensive PHP and MySQL experience. Does anyone have any suggestions for interview questions? I have no PHP or MySQL experience, and come from a non-technical background. I want the questions to be technical, but I am unsusre

Re: [PHP] PHP Interview questions

2003-08-26 Thread Peter James
: Tuesday, August 26, 2003 9:22 AM Subject: [PHP] PHP Interview questions Hello All, I am in the process of hiring someone that needs to have extensive PHP and MySQL experience. Does anyone have any suggestions for interview questions? I have no PHP or MySQL experience, and come from a non

Re: [PHP] PHP Interview questions

2003-08-26 Thread CPT John W. Holmes
From: Micheal Harris [EMAIL PROTECTED] I am in the process of hiring someone that needs to have extensive PHP and MySQL experience. Does anyone have any suggestions for interview questions? I have no PHP or MySQL experience, and come from a non-technical background. I want the questions to be

RE: [PHP] PHP Interview questions

2003-08-26 Thread Jay Blanchard
[snip] I say you should send them to the list and let us grill them!! We'll sort out the riff-raff.. :) [/snip] Hear! Hear! :) Also ask a couple of other questions that require thought, but have nothing else to do with code. such as... In one room you have 3 light switches, each connected to

RE: [PHP] PHP Interview questions

2003-08-26 Thread Javier Tacon
: Micheal Harris; [EMAIL PROTECTED] Asunto: Re: [PHP] PHP Interview questions From: Micheal Harris [EMAIL PROTECTED] I am in the process of hiring someone that needs to have extensive PHP and MySQL experience. Does anyone have any suggestions for interview questions? I have no PHP or MySQL

RE: [PHP] PHP Interview questions

2003-08-26 Thread Robert Cummings
This smells like a trick question... Are the switches connected to the same light bulb? You've only mentioned one light bulb? 8) Cheers, Rob. On Tue, 2003-08-26 at 12:35, Jay Blanchard wrote: Also ask a couple of other questions that require thought, but have nothing else to do with code.

Re: [PHP] PHP Interview questions

2003-08-26 Thread CPT John W. Holmes
From: Jay Blanchard [EMAIL PROTECTED] Also ask a couple of other questions that require thought, but have nothing else to do with code. such as... In one room you have 3 light switches, each connected to one light bulb in another room. How many trips must you make to determine which switch

RE: [PHP] PHP Interview questions

2003-08-26 Thread Jay Blanchard
[snip] This smells like a trick question... Are the switches connected to the same light bulb? You've only mentioned one light bulb? 8) [/snip] I should have been clearer. There are 3 light bulbs, each connected to one of 3 switches. Replies are coming in off-list as well. :) I have more like

RE: [PHP] PHP Interview questions

2003-08-26 Thread Jay Blanchard
[snip] In one room you have 3 light switches, each connected to one light bulb in another room. How many trips must you make to determine which switch is connected to which light bulb? PHP is server side, so it obviously cannot control light bulbs. Use javascript. [/snip] That really did make

RE: [PHP] PHP Interview questions

2003-08-26 Thread Brian S. Drexler
] Subject: RE: [PHP] PHP Interview questions This smells like a trick question... Are the switches connected to the same light bulb? You've only mentioned one light bulb? 8) Cheers, Rob. On Tue, 2003-08-26 at 12:35, Jay Blanchard wrote: Also ask a couple of other questions that require thought

Re: [PHP] PHP Interview questions

2003-08-26 Thread Richard Baskett
on 8/26/03 9:57 AM, Robert Cummings at [EMAIL PROTECTED] wrote: This smells like a trick question... Are the switches connected to the same light bulb? You've only mentioned one light bulb? 8) Cheers, Rob. On Tue, 2003-08-26 at 12:35, Jay Blanchard wrote: Also ask a couple of other

Re: [PHP] PHP Interview questions

2003-08-26 Thread Ray Hunter
Everyone has given some great information. I have some ideas i would like to throw into the mix too. Here are some topics: 1. Questions regarding HTTP protocols. (SSL) 2. Questions regarding the server that you will be deploying on. If you are deploying to apache or iis they should be

Re: [PHP] PHP Interview questions

2003-08-26 Thread Michael A Smith
CPT John W. Holmes wrote: From: Jay Blanchard [EMAIL PROTECTED] Also ask a couple of other questions that require thought, but have nothing else to do with code. such as... In one room you have 3 light switches, each connected to one light bulb in another room. How many trips must you make to

Re: [PHP] PHP Interview questions

2003-08-26 Thread Curt Zirzow
* Thus wrote Richard Baskett ([EMAIL PROTECTED]): on 8/26/03 9:57 AM, Robert Cummings at [EMAIL PROTECTED] wrote: This smells like a trick question... Are the switches connected to the same light bulb? You've only mentioned one light bulb? 8) Cheers, Rob. On Tue, 2003-08-26

Re: [PHP] PHP Interview questions

2003-08-26 Thread Gabriel Guzman
On Tue, 2003-08-26 at 10:36, Ray Hunter wrote: Everyone has given some great information. I have some ideas i would like to throw into the mix too. Here are some topics: 1. Questions regarding HTTP protocols. (SSL) One that was we like to use is: Describe an HTTP header. Most people

Re: [PHP] PHP Interview questions

2003-08-26 Thread Gabriel Guzman
On Tue, 2003-08-26 at 10:00, CPT John W. Holmes wrote: PHP is server side, so it obviously cannot control light bulbs. Use javascript. maybe the lightbulbs are connected to the server :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php