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 inclu

Re: [PHP] PHP Interview questions

2003-08-29 Thread Pete James
r 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. -murugesan - Original Message - From: "Matt Matijevich" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, Au

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? Hmmm.

Re: [PHP] PHP Interview questions

2003-08-29 Thread murugesan
ROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 29, 2003 2:55 AM Subject: RE: [PHP] PHP Interview questions > > Can you do it programmitically (with pseudo-code)? After all, we need > to > keep this on-topic :) > > > > not pseudo code and it could definatle

RE: [PHP] PHP Interview questions

2003-08-28 Thread Matt Matijevich
Can you do it programmitically (with pseudo-code)? After all, we need to keep this on-topic :) 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."; $randval = rand(1, 500); $randval2 = rand(1, 500

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 a

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 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] 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 problem

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. Ho

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

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 > lightb

RE: [PHP] PHP Interview questions

2003-08-27 Thread Martin Towell
... (maybe.., I don't know how long 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 Zirzo

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"; >

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

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

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 pe

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

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

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 familia

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

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

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 ma

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 thes

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

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. su

RE: [PHP] PHP Interview questions

2003-08-26 Thread Javier Tacon
18:03 Para: 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 que

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 one

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 question

Re: [PHP] PHP Interview questions

2003-08-26 Thread Peter James
Even better than questions, make a one or two hour case study. Have them demonstrate their ability. 1. How would you solve X problem? 2. What do you think about Y? 3. Write some code to solve Z? A good place for ideas for case studies might be codewalkers, weberdev, or php-editors. There's a bi