1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

10 basic PHP interview questions

Discussion in 'PHP' started by muzam, Jul 3, 2012.

  1. #1
    1. What is PHP?
    2. What is an abstract class? or by giving an example they ask what is it called?
    3. What Is a Session in PHP?
    4. Explain the difference between $message and $$message?
    6. What is method/function overloading and overriding?
    7. How to set cookies in PHP?
    8. What is the difference between include and require?
    9. What is the difference between a framework, IDE, CMS, Blog?
    10. What is the difference between $var and $$var?
     
    muzam, Jul 3, 2012 IP
  2. NetStar

    NetStar Notable Member

    Messages:
    2,471
    Likes Received:
    541
    Best Answers:
    21
    Trophy Points:
    245
    #2
    I don't think a job is going to ask you this silly question. Odds are if you are interviewing for a PHP Programming job you obviously know what it means.

    I know GOOD PHP Programmers, including myself, that don't waste their time using "PHP Sessions".

    If someone was to ask me this question I would assume THEY were a horrible programmer. Creating dynamic variables using $$var is considered TERRIBLE practice.

    All of which don't even relate. This question would never be asked.

    Why would that question be re-asked twice?
     
    NetStar, Jul 4, 2012 IP
  3. aliaydin

    aliaydin Greenhorn

    Messages:
    16
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    23
    #3
    hi,

    i want to learn, what are you using instead of php sessions ?

    thanks.
     
    aliaydin, Jul 11, 2012 IP
  4. amalfra

    amalfra Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    database driven sessions .
     
    amalfra, Jul 12, 2012 IP
  5. Itachi Uchiha

    Itachi Uchiha Member

    Messages:
    111
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #5
    Some of the questions are useful when you want to hire a developer on DP. Thanks.
     
    Itachi Uchiha, Jul 13, 2012 IP
  6. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #6
    Since the questions aren't valid when it comes to programming or to PHP, they're not valid no matter where you're getting your candidates from.
     
    Rukbat, Jul 13, 2012 IP
  7. lolpasslol

    lolpasslol Peon

    Messages:
    860
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I am new but try to answer.
    1. What is PHP?
    -php hypertext preprocessor,an open source language developed by rasmus lerdorf,for building dynamic and interective website.
    3. What Is a Session in PHP?
    - it' a Valaria,it define the state of current session.
    7. How to set cookies in PHP?
    -you can set it by stecookies(),or cookies destroy.
     
    lolpasslol, Jul 17, 2012 IP
  8. BRUm

    BRUm Well-Known Member

    Messages:
    3,086
    Likes Received:
    61
    Best Answers:
    1
    Trophy Points:
    100
    #8
    A employer wouldn't ask PHP specific questions. I know from first hand experience they would ask questions relating to programming practices, such as OOP.

    One common question for potential employees is: "Name the fundamental elements of OO programming/design". Which are, of course:

    1. Inheritance
    2. Polymorphism
    3. Encapsulation
    4. Abstraction

    There are more of course, however a formalised list does not yet exist.

    Woop, for rhyme :D
     
    BRUm, Jul 21, 2012 IP
  9. meochain

    meochain Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Nice information....Thanks for Sharing
     
    meochain, Jul 25, 2012 IP
  10. TechGaon

    TechGaon Greenhorn

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #10
    if the employer is a reputed company definitely they are not going to ask these silly questions as pointed out by above posters. questions would be more on your experience, projects, programming practices and latest trends.
     
    TechGaon, Jul 25, 2012 IP