David Thomas Baker » PHP » Geek Interview Questions

Will update this page each time I think of a cool/hard/fun interview question
  • What will this do: <input type="submit" name="confirm" id="confirm" value="Confirm Request" onclick="return confirm('Really Confirm Request?');">
  • Explain what JSON is...
  • Have you ever created or consumed web services in PHP?
  • Explain what REST is...
  • Have you used firebug?
  • Write this another way:
    <?=($foo)?$bar:$moo;?>
  • What does this display?
    preg_match("/^(http:\/\/info@)?([^\/]+)/i","http://info@abc.com", $data); echo $data[2];
  • What will a print_r($_REQUEST); show on these form elements:
    <input type="checkbox" name="box[a]" value=yes>
    <input type="checkbox" name="box[b]" value=yes>
  • What does this print out:
    $v=2; echo $v++%2;
  • Do you use <th>'s when writing html?
  • Explain what ob_start() does in PHP
  • Explain what is wrong with the following JavaScript, if ther is nothing wrong with it, then tell me what it will output:
    var moo = {
    foo: function(){
    var b = this.a--;
    alert(--b)
    },
    a: 4
    }
    moo.a=3;
    moo.foo();
  • In what way are the JavaScript and Java programming languages related?
  • Explain what a fork bomb is
  • Is this valid JavaScript:
    var moo = {a : "string", b: 4, c: function(){ alert('moo'); } };
  • Do you know what the "short_open_tag" does in php.ini
  • What does set_time_limit(0); do in PHP?
  • Tell me what the parameter list of the mail() function is.
  • Show me how to send a HTML email using the PHP mail() function
  • How do you catch an exception in PHP?
  • What does json_decode() do in PHP?
  • How do you post data to a script via ajax using jQuery?
  • Using jQuery, what do you write in the onclick="" event to hide and show the div?
    <a href="#" onclick="">Hide/Show Div</a>
    <div id="thediv">
    some random content
    </div>
  • What does this command do: ssh -g -L 8080:192.168.0.55:80 foo@otherhost -P 2222
  • What does this command do: xhost +
  • Explain what the suphp apache module does?
  • What are the apache2 commands to enable a site called "foo", it's valid configuration files is /etc/apache2/sites-available/foo
  • more to come
Posted by David Baker in: PHP | Linux |
Tags: interview questions |
Perm Link: link
Some ads...

Search My Site

Featured Projects

Collector Comics is THE place to buy, sell, and research comics online. Launching soon.
Launch » Screenshot »
Webitor is a kick-ass easy to use, easy to extend, non-database driven Content Management System. Version 2 with reseller plan coming soon.
Launch » Version 1 »
GC Lounge is my own pet social network and test bed for social related code. Made by locals for locals.
Launch »
GG has indexed over half a million recent Trade Mark applications. This revolutionary tool is extremely valuable for industry experts.
Launch »
GCWiFi is the hub for techies interested in joining a ad-hoc wireless mesh spread across the Gold Coast
Launch »
Web based financial client management system
Launch »
OS Commerce modules and template modification
Launch »
View More Projects »

Daves Friends

BlueTeddy
WebSpark
GC Designer Forum
IPWealth Trademarks
Cheap Websites
Bonsai Shop
Webitor CMS Resellers
Hayley Crook
David Novakovic
Ben Novakovic
Richard Morwood
Gold Coast Linux
Aussie Click
CMS Website Design
Inspire Tuition
Gold Coast Music Network and Gold Coast Gig Guide

Chat with Dave

Powered by...

In the works

Webitor - Easy to use Content Management System with Shop, Newsletter, and Reseller plan