Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
62Activity
0 of .
Results for:
No results containing your search query
P. 1
Interview Questions for a PHP Developer

Interview Questions for a PHP Developer

Ratings:

4.75

(4)
|Views: 3,315 |Likes:
Published by Daniel Cousineau

More info:

Categories:Types, Resumes & CVs
Published by: Daniel Cousineau on Apr 14, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/07/2013

pdf

text

original

 
Interview Questions for PHP/MySQL Developer
1 of 7
HTML and JavaScript 
1.
 
The HTML tag
<br>
does not validate when using the XHTML 1.0 Strict doctype. Why? What changeis necessary for it to validate?2.
 
Name a tag that was deprecated in HTML 4.01 and/or XHTML 1.0 Strict.3.
 
Fix the following HTML snippets (assume doctype is XHTML 1.0 Strict)
a.
 
<p><strong>Bold Text!</p></strong>b.
 
<span><div>Sample Text</div></span>
4.
 
a.
 
What does AJAX stand for? What is the core enabling technology behind AJAX? (hint: notlanguage)b.
 
Name 2 AJAX libraries5.
 
a.
 
What is JSON?b.
 
Turn the array
{“index1” => {“one”,”two”}, “index2” => “three”}
into aJSON string.
 
2 of 7
PHP 
1.
 
What is the major difference(s) between PHP 4.x and PHP 5.x?2.
 
Name a language feature being introduced in PHP 5.33.
 
What is the difference between
require_once()
,
require()
, and
include()
?4.
 
What function would you use to redirect the browser to a new page?
a.
 
redir()b.
 
header()c.
 
location()d.
 
redirect()
5.
 
What is the
 LITERAL
output of the following script?
//returns string 'true' when $bool is true, 'false' when notfunction tf( $bool ) { return $bool == true ? 'true' : 'false'; }
 
$a = "5";$b = 5;echo 'Line 1: ' . tf($a == $b) . "\n";echo "Line 2: " . tf($a === $b) . '\n';
OUTPUT: _______________________________  _______________________________  _______________________________ 
6.
 
What is the effect of prefixing a function with an @ symbol (e.g.
unlink()
and
@unlink()
)?7.
 
What is the security flaw in the following line of code and how would you fix it? Use the back of thepage if necessary.
$sql = "UPDATE products SET `name` = '" .
$_GET[„
name
‟]
. "', `price` = '" .
$_GET[„
price
‟]
. "' WHERE id = " .
$_GET[„
id
‟]
. ";";
 
 
3 of 7
MySQL
1.
 
What are 2 database engines can you use with MySQL? What are the benefits and limitations of theseengines?2.
 
A customer wants an e-commerce website to sell books that are published by his company. Design adatabase that will track relevant information about each book (author, title, back-cover snippet, ISBN,price, published date, etc.) and also track the inventory of the warehouses holding the books. Pleaseconform to the highest normal form you feel is necessary. (Feel free to draw the design as a diagram if you wish)3.
 
Using your database design above, write a query that will return the first 30 books that were most
recently published. Include the book’s title, author, published date, and price and only include those
books which are currently in stock in one of the warehouses.

Activity (62)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Roubin Dhallapah liked this
Shivam Agrawal liked this
Mrinalini Guha liked this
Prateek Dhingra liked this
Rakesh Verma liked this
Subhashish Jena liked this
sskathait liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->