Lead Web Developer Interview Questions

14,168 lead web developer interview questions shared by candidates

Most unexpected question was: echo $name; loop { if( $name = 'blabla' ){ header("authorized"); } } appears a bug, saying "headers already sent". luckily i was experience in this field :) Headers already sent previously by the server to output the name before loop, the all headers should be sent prior to output. How to prevent ? Dont echo name, or, if you can not change - use ob_start(), ob_end_flush() to buffer the outputs. THe next question came up is Why ob_*, if you can force server to push always buffered ? - Force server to always buffer is a wrong way, you not always going to need the buffer, so that OB_* making possible to buffer only when you need.
avatar

Web Developer

Interviewed at Market.com

2.9
Aug 14, 2013

Most unexpected question was: echo $name; loop { if( $name = 'blabla' ){ header("authorized"); } } appears a bug, saying "headers already sent". luckily i was experience in this field :) Headers already sent previously by the server to output the name before loop, the all headers should be sent prior to output. How to prevent ? Dont echo name, or, if you can not change - use ob_start(), ob_end_flush() to buffer the outputs. THe next question came up is Why ob_*, if you can force server to push always buffered ? - Force server to always buffer is a wrong way, you not always going to need the buffer, so that OB_* making possible to buffer only when you need.

Viewing 3541 - 3550 interview questions

Glassdoor has 14,168 interview questions and reports from Lead web developer interviews. Prepare for your interview. Get hired. Love your job.