SitePoint Sponsor

User Tag List

Results 1 to 17 of 17
  1. #1
    Non-Member
    Join Date
    Nov 2008
    Location
    internettrix.blogspot.com
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP Interview Questions

    hiii friends i came across few important PHP Interview Questions

    if you knw answer of below question do post the answer
    and also post sum question that u think r important

    I found some PHP interview related question:

    1. What are the differences between Get and post methods in form submitting, give the case where we can use get and we can use post methods?
    2. Who is the father of PHP and explain the changes in PHP versions?
    3. How can we submit a form without a submit button?
    4. In how many ways we can retrieve the date in the result set of mysql using PHP?
    5. What is the difference between mysql_fetch_object and mysql_fetch_array?
    6. What is the difference between $message and $$message?
    7. How can we extract string ‘abc.com ‘ from a string ‘http://info@abc.com’ using regular expression of PHP?
    8. How can we create a database using PHP and mysql?
    9. What are the differences between require and include, include_once?
    10. Can we use include (”abc.PHP”) two times in a PHP page “makeit.PHP”?
    11. What are the different tables present in mysql, which type of table is generated when we are creating a table in the following syntax: create table employee(eno int(2),ename varchar(10)) ?
    12. Functions in IMAP, POP3 AND LDAP?
    13. How can I execute a PHP script using command line?
    14. Suppose your Zend engine supports the mode <? ?> Then how can u configure your PHP Zend engine to support <?PHP ?> mode ?
    15. Shopping cart online validation i.e. how can we configure Paypal, etc.?
    16.What is meant by nl2br()?
    17.Draw the architecture of Zend engine?
    18.What are the current versions of apache, PHP, and mysql?
    19.What are the reasons for selecting lamp (linux, apache, mysql, PHP) instead of combination of other software programmes, servers and operating systems?
    20.How can we encrypt and decrypt a data present in a mysql table using mysql?
    21.How can we encrypt the username and password using PHP?
    22.What are the features and advantages of object-oriented programming?
    23.What are the differences between procedure-oriented languages and object-oriented languages?
    24.What is the use of friend function?
    25.What are the differences between public, private, protected, static, transient, final and volatile?
    26.What are the different types of errors in PHP?
    27.What is the functionality of the function strstr and stristr?
    28.What are the differences between PHP 3 and PHP 4 and PHP 5?
    29.How can we convert asp pages to PHP pages?
    30.What is the functionality of the function htmlentities?
    31.How can we get second of the current time using date function?
    32.How can we convert the time zones using PHP?
    33.What is meant by urlencode and urldocode?
    34.What is the difference between the functions unlink and unset?
    35.How can we register the variables into a session?
    36.How can we get the properties (size, type, width, height) of an image using PHP image functions?
    37.How can we get the browser properties using PHP?
    38.What is the maximum size of a file that can be uploaded using PHP and how can we change this?
    39.How can we increase the execution time of a PHP script?
    40.How can we take a backup of a mysql table and how can we restore it. ?

  2. #2
    SitePoint Evangelist
    Join Date
    Jun 2006
    Location
    Wigan, Lancashire. UK
    Posts
    523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1. What are the differences between Get and post methods in form submitting, give the case where we can use get and we can use post methods? - Surely this is about HTML rather than PHP
    3. How can we submit a form without a submit button? - Surely this is about HTML/Javascript rather than PHP
    7. How can we extract string ‘abc.com ‘ from a string ‘http://info@abc.com’ using regular expression of PHP? - more about regular Expression syntax than PHP
    11. What are the different tables present in mysql, which type of table is generated when we are creating a table in the following syntax: create table employee(eno int(2),ename varchar(10)) ? - purely MySQL and nothing to do with PHP
    12. Functions in IMAP, POP3 AND LDAP? - What about them? Is this a question
    18.What are the current versions of apache, PHP, and mysql? - Is this really a valid question... do you want to know what versions are in alpha/beta, or simply just production?
    19.What are the reasons for selecting lamp (linux, apache, mysql, PHP) instead of combination of other software programmes, servers and operating systems? - Is this to test knowledge of PHP, or to justify a corporate strategy?
    20.How can we encrypt and decrypt a data present in a mysql table using mysql? - purely MySQL and nothing to do with PHP
    22.What are the features and advantages of object-oriented programming? - in PHP or in general?
    23.What are the differences between procedure-oriented languages and object-oriented languages? - in PHP or in general?
    25.What are the differences between public, private, protected, static, transient, final and volatile? - are all these available in PHP?
    28.What are the differences between PHP 3 and PHP 4 and PHP 5? - How many developers here even remember what features were in PHP3?
    40.How can we take a backup of a mysql table and how can we restore it. ?- can be done in PHP, but better done using MySQL itself
    ---
    Development Projects:
    PHPExcel
    PHPPowerPoint

  3. #3
    Non-Member
    Join Date
    Nov 2008
    Location
    internettrix.blogspot.com
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey though they r not related to php
    but you should have knowledge of these stuff too

  4. #4
    SitePoint Evangelist
    Join Date
    Jun 2006
    Location
    Wigan, Lancashire. UK
    Posts
    523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by viron86 View Post
    hey though they r not related to php
    but you should have knowledge of these stuff too
    Not necessarily.
    For example, I work predominantly with Oracle, so while I do have a knowledge of MySQL it isn't critical for most of my work.
    If I'm fluent in PHP which doesn't have any concept of 'volatile', should I be expected to know what it means?
    If I'm writing purely using PHP5, do I need to know all about PHP3?
    ---
    Development Projects:
    PHPExcel
    PHPPowerPoint

  5. #5
    SitePoint Wizard silver trophybronze trophy Stormrider's Avatar
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    3,133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Some of the HTML related ones are still useful, but there is a lot of stuff in there not related to php/html/mysql at all.

  6. #6
    Non-Member
    Join Date
    Nov 2008
    Location
    internettrix.blogspot.com
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    u r rigth man
    these question might not be important for an experieced guy
    but surely important for a fresher


    as a fresher i think
    "rather being MASTER of one it is good to be JACK of all"

  7. #7
    SitePoint Wizard silver trophybronze trophy Stormrider's Avatar
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    3,133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    No... if interviewing for a PHP job, other languages and things that aren't relevant to PHP just aren't important, experienced or not. Why ask about transient of volatile variable types if it has absolutely nothing to do with PHP?

  8. #8
    @php.net Salathe's Avatar
    Join Date
    Dec 2004
    Location
    Edinburgh
    Posts
    1,396
    Mentioned
    54 Post(s)
    Tagged
    0 Thread(s)
    Is this spam? These questions appear verbatim throughout the web, including here on SitePoint. A huge bunch of the questions are utterly useless for an interview scenario and many are absurd, plain silly and/or nonsensical.
    Salathe
    Software Developer and PHP Manual Author.

  9. #9
    SitePoint Addict khuramyz's Avatar
    Join Date
    Oct 2005
    Location
    Manchester, UK
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hehehe thats funny man
    Khuram Javaid
    PHP Developer and Entrepreneur
    http://www.phprad.com/

  10. #10
    SitePoint Wizard rguy84's Avatar
    Join Date
    Sep 2005
    Location
    Durham, NC
    Posts
    1,659
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    If I were asked these I would laugh and walk out probably
    Ryan B | My Blog | Twitter

  11. #11
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,016
    Mentioned
    53 Post(s)
    Tagged
    2 Thread(s)
    it's a homework assignment, don't answer them
    r937.com | rudy.ca | Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  12. #12
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by r937 View Post
    it's a homework assignment, don't answer them
    Rudy you cynic!
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  13. #13
    SitePoint Wizard rguy84's Avatar
    Join Date
    Sep 2005
    Location
    Durham, NC
    Posts
    1,659
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by r937 View Post
    it's a homework assignment, don't answer them
    +1 VOTE for shooting the professor?

    I scrolled up, and the following caught my eye:
    39.How can we increase the execution time of a PHP script?
    C'mon now, seriously? Might as well ask how come my computer doesn't turn on. I can name like 10 things that might cause that to happen.
    Ryan B | My Blog | Twitter

  14. #14
    Web Professional
    Join Date
    Oct 2008
    Location
    London
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Homework assignment? What kind of school is this? Any school giving this for a home work should be banned from educating.

  15. #15
    SitePoint Wizard silver trophybronze trophy Stormrider's Avatar
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    3,133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I think question 39 means... change the execution time LIMIT, rather than how can we make the script slower

    Also, it's not a homework assignment, since the questions are linked to in other places above. I reckon it's just a way to get his signature links on display (and his custom text below the avatar)...

  16. #16
    SitePoint Wizard rguy84's Avatar
    Join Date
    Sep 2005
    Location
    Durham, NC
    Posts
    1,659
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Ryan B | My Blog | Twitter

  17. #17
    SitePoint Wizard silver trophybronze trophy Stormrider's Avatar
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    3,133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Notice he hasn't posted back here, and he's just posted in the new thread about 'fluff posting' - how ironic


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •