Really hardcore question about PHP needed :)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tasteless

    Really hardcore question about PHP needed :)

    Hi guys,

    I need really hard questions (about 10) about PHP programming (some of
    elements OOP as well, but no MySQL questions - this is different part),
    this questions needs to be very hard, but the experienced senior PHP
    developer should answered on it.

    I've already searched in google and google groups archive but without
    any good results. So could anybody help me giving some link or sending
    some stuff to me ?

    Thanks and regards - Peter.

    PS. It's about the bet with one of my friend :)

    --
    Silly is a state of Mind, Stupid is a way of Life.
  • =?ISO-8859-15?Q?Iv=E1n_S=E1nchez_Ortega?=

    #2
    Re: Really hardcore question about PHP needed :)

    tasteless wrote:
    I need really hard questions (about 10) about PHP programming (some of
    elements OOP as well, but no MySQL questions - this is different part),
    this questions needs to be very hard, but the experienced senior PHP
    developer should answered on it.
    Setting up an interview for hiring a developer, I guess? ;-)


    Where does PHP5 allow parameters by reference: in the function definition,
    in the function call, or in both?

    What does "Paamayim Nekudotayim" mean?



    Hard enough for ya' ?

    --
    ----------------------------------
    Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

    Q: Why is Christmas just like a day at the office?
    A: You do all of the work and the fat guy in the suit
    gets all the credit.

    Comment

    • amygdala

      #3
      Re: Really hardcore question about PHP needed :)

      What does "Paamayim Nekudotayim" mean?

      lol, nice one.


      Comment

      • Vince Morgan

        #4
        Re: Really hardcore question about PHP needed :)


        "tasteless" <tasteless@gaze ta.plwrote in message
        news:f0018j$sg2 $1@inews.gazeta .pl...
        Hi guys,
        >
        I need really hard questions (about 10) about PHP programming (some of
        elements OOP as well, but no MySQL questions - this is different part),
        this questions needs to be very hard, but the experienced senior PHP
        developer should answered on it.
        >
        I've already searched in google and google groups archive but without
        any good results. So could anybody help me giving some link or sending
        some stuff to me ?
        >
        Thanks and regards - Peter.
        >
        PS. It's about the bet with one of my friend :)
        >
        --
        Silly is a state of Mind, Stupid is a way of Life.
        I got one that's been bothering me all day.
        What's the implementaion of "array_read ()"?
        And if you find the answer, please let me know the question.
        Vince


        Comment

        • Steve

          #5
          Re: Really hardcore question about PHP needed :)


          "Iván Sánchez Ortega" <ivansanchez-alg@rroba-escomposlinux.-.punto.-.org>
          wrote in message news:f0024s$85i $1@hercules.coh p1...
          | tasteless wrote:
          |
          | I need really hard questions (about 10) about PHP programming (some of
          | elements OOP as well, but no MySQL questions - this is different part),
          | this questions needs to be very hard, but the experienced senior PHP
          | developer should answered on it.
          |
          | Setting up an interview for hiring a developer, I guess? ;-)
          |
          |
          | Where does PHP5 allow parameters by reference: in the function definition,
          | in the function call, or in both?

          it's both isn't it...and that's been since php 3, hasn't it?


          Comment

          • Steve

            #6
            Re: Really hardcore question about PHP needed :)


            "Vince Morgan" <vinhar@REMOVEo ptusnet.com.auw rote in message
            news:462395d3$0 $11788$afc38c87 @news.optusnet. com.au...
            |
            | "tasteless" <tasteless@gaze ta.plwrote in message
            | news:f0018j$sg2 $1@inews.gazeta .pl...
            | Hi guys,
            | >
            | I need really hard questions (about 10) about PHP programming (some of
            | elements OOP as well, but no MySQL questions - this is different part),
            | this questions needs to be very hard, but the experienced senior PHP
            | developer should answered on it.
            | >
            | I've already searched in google and google groups archive but without
            | any good results. So could anybody help me giving some link or sending
            | some stuff to me ?
            | >
            | Thanks and regards - Peter.
            | >
            | PS. It's about the bet with one of my friend :)
            | >
            | --
            | Silly is a state of Mind, Stupid is a way of Life.
            |
            | I got one that's been bothering me all day.
            | What's the implementaion of "array_read ()"?
            | And if you find the answer, please let me know the question.


            lol. you already won that prize.


            Comment

            • Steve

              #7
              Re: Really hardcore question about PHP needed :)


              "tasteless" <tasteless@gaze ta.plwrote in message
              news:f0018j$sg2 $1@inews.gazeta .pl...
              | Hi guys,
              |
              | I need really hard questions (about 10) about PHP programming (some of
              | elements OOP as well, but no MySQL questions - this is different part),
              | this questions needs to be very hard, but the experienced senior PHP
              | developer should answered on it.
              |
              | I've already searched in google and google groups archive but without
              | any good results. So could anybody help me giving some link or sending
              | some stuff to me ?
              |
              | Thanks and regards - Peter.
              |
              | PS. It's about the bet with one of my friend :)

              what's the sqrt of a negative number? now, what does php say it is?

              ;)


              Comment

              • Vince Morgan

                #8
                Re: Really hardcore question about PHP needed :)


                "Steve" <no.one@example .comwrote in message
                news:TUMUh.2$PA 6.1@newsfe04.lg a...
                >
                "Iván Sánchez Ortega" <ivansanchez-alg@rroba-escomposlinux.-.punto.-.org>
                wrote in message news:f0024s$85i $1@hercules.coh p1...
                | tasteless wrote:
                |
                | I need really hard questions (about 10) about PHP programming (some of
                | elements OOP as well, but no MySQL questions - this is different
                part),
                | this questions needs to be very hard, but the experienced senior PHP
                | developer should answered on it.
                |
                | Setting up an interview for hiring a developer, I guess? ;-)
                |
                |
                | Where does PHP5 allow parameters by reference: in the function
                definition,
                | in the function call, or in both?
                >
                it's both isn't it...and that's been since php 3, hasn't it?
                >
                >
                Warning: Call-time pass-by-reference has been deprecated .
                If it's in both ;)
                Vince


                Comment

                • ZeldorBlat

                  #9
                  Re: Really hardcore question about PHP needed :)

                  On Apr 16, 11:54 am, "Vince Morgan" <vin...@REMOVEo ptusnet.com.au>
                  wrote:
                  "Steve" <no....@example .comwrote in message
                  >
                  news:TUMUh.2$PA 6.1@newsfe04.lg a...
                  >
                  >
                  >
                  "Iván Sánchez Ortega" <ivansanchez-...@rroba-escomposlinux.-.punto.-.org>
                  wrote in messagenews:f00 24s$85i$1@hercu les.cohp1...
                  | tasteless wrote:
                  |
                  | I need really hard questions (about 10) about PHP programming (someof
                  | elements OOP as well, but no MySQL questions - this is different
                  part),
                  | this questions needs to be very hard, but the experienced senior PHP
                  | developer should answered on it.
                  |
                  | Setting up an interview for hiring a developer, I guess? ;-)
                  |
                  |
                  | Where does PHP5 allow parameters by reference: in the function
                  definition,
                  | in the function call, or in both?
                  >
                  it's both isn't it...and that's been since php 3, hasn't it?
                  >
                  Warning: Call-time pass-by-reference has been deprecated .
                  If it's in both ;)
                  Vince
                  No, not if you use it in both -- only if you use it when calling the
                  function.

                  Comment

                  • lawrence k

                    #10
                    Re: Really hardcore question about PHP needed :)

                    On Apr 16, 10:29 am, tasteless <tastel...@gaze ta.plwrote:
                    Hi guys,
                    >
                    I need really hard questions (about 10) about PHP programming (some of
                    elements OOP as well, but no MySQL questions - this is different part),
                    this questions needs to be very hard, but the experienced senior PHP
                    developer should answered on it.
                    Which causes a bigger surge in memory usage, including() a file with a
                    large array or unserializing the same information after its been
                    serialized?




                    Comment

                    • FFMG

                      #11
                      Re: Really hardcore question about PHP needed :)


                      tasteless;60646 Wrote:
                      Hi guys,
                      >
                      I need really hard questions (about 10) about PHP programming (some of
                      elements OOP as well, but no MySQL questions - this is different
                      part),
                      this questions needs to be very hard, but the experienced senior PHP
                      developer should answered on it.
                      >
                      I've already searched in google and google groups archive but without
                      any good results. So could anybody help me giving some link or sending
                      some stuff to me ?
                      >
                      Thanks and regards - Peter.
                      >
                      PS. It's about the bet with one of my friend :)
                      >
                      --
                      Silly is a state of Mind, Stupid is a way of Life.
                      Here is one,

                      If I _do not_ want to suppress warnings in include(...), (in other word
                      not use @include(...))
                      Why is file_exists(... ) alone not a good option.
                      How would you check if a file exists for inclusion.

                      FFMG


                      --

                      'webmaster forum' (http://www.httppoint.com) | 'webmaster Directory'
                      (http://www.webhostshunter.com/) | 'Recreation Vehicle insurance'
                      (http://www.insurance-owl.com/other/car_rec.php)
                      'Free URL redirection service' (http://urlkick.com/)
                      ------------------------------------------------------------------------
                      FFMG's Profile: http://www.httppoint.com/member.php?userid=580
                      View this thread: http://www.httppoint.com/showthread.php?t=13938

                      Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).

                      Comment

                      • Steve

                        #12
                        Re: Really hardcore question about PHP needed :)


                        "lawrence k" <lkrubner@geoci ties.comwrote in message
                        news:1176742297 .641577.63900@y 80g2000hsf.goog legroups.com...
                        | On Apr 16, 10:29 am, tasteless <tastel...@gaze ta.plwrote:
                        | Hi guys,
                        | >
                        | I need really hard questions (about 10) about PHP programming (some of
                        | elements OOP as well, but no MySQL questions - this is different part),
                        | this questions needs to be very hard, but the experienced senior PHP
                        | developer should answered on it.
                        |
                        | Which causes a bigger surge in memory usage, including() a file with a
                        | large array or unserializing the same information after its been
                        | serialized?

                        good one...i'd love to know the correct answers for these. my guess would be
                        a higher spike when unserializing.


                        Comment

                        • Steve

                          #13
                          Re: Really hardcore question about PHP needed :)


                          "FFMG" <FFMG.2p57d9@ no-mx.httppoint.co mwrote in message
                          news:FFMG.2p57d 9@no-mx.httppoint.co m...
                          |
                          | tasteless;60646 Wrote:
                          | Hi guys,
                          | >
                          | I need really hard questions (about 10) about PHP programming (some of
                          | elements OOP as well, but no MySQL questions - this is different
                          | part),
                          | this questions needs to be very hard, but the experienced senior PHP
                          | developer should answered on it.
                          | >
                          | I've already searched in google and google groups archive but without
                          | any good results. So could anybody help me giving some link or sending
                          | some stuff to me ?
                          | >
                          | Thanks and regards - Peter.
                          | >
                          | PS. It's about the bet with one of my friend :)
                          | >
                          | --
                          | Silly is a state of Mind, Stupid is a way of Life.
                          |
                          | Here is one,
                          |
                          | If I _do not_ want to suppress warnings in include(...), (in other word
                          | not use @include(...))
                          | Why is file_exists(... ) alone not a good option.
                          | How would you check if a file exists for inclusion.

                          google is great...file_ex ists seems to be tied with open_basedir limits in
                          php.ini.

                          This error message indicates that the path to your home directory is not
                          included in allowed paths specified by open_basedir parameter in php.ini
                          file. open_basedir limits the files that can be opened by PHP to the
                          specified directory and all included subdirectories. Thus, PHP script is
                          trying to read a file which is not found in the specified path and the error
                          occurs.

                          One way to solve the problem is to include your home directory path in the
                          path list that PHP is allowed to open, specified by open_basedir. For
                          example, the following setting indicates that PHP script can read files
                          located in /home/vhosts, /usr/share/php/pear/ and /tmp folders:

                          open_basedir =/home/vhosts:/usr/share/php/pear/:/tmp

                          Another solution is to disable open_basedir restriction and allow open
                          access to all directories. By default all files are allowed to be opened by
                          PHP script.


                          Comment

                          • Sanders Kaufman

                            #14
                            Re: Really hardcore question about PHP needed :)

                            FFMG wrote:
                            If I _do not_ want to suppress warnings in include(...), (in other word
                            not use @include(...))
                            Why is file_exists(... ) alone not a good option.
                            How would you check if a file exists for inclusion.
                            That's too easy.
                            Just use the filesystem functions.

                            Comment

                            • Rami Elomaa

                              #15
                              Re: Really hardcore question about PHP needed :)

                              FFMG kirjoitti:
                              tasteless;60646 Wrote:
                              >Hi guys,
                              >>
                              >I need really hard questions (about 10) about PHP programming (some of
                              >elements OOP as well, but no MySQL questions - this is different
                              >part),
                              >this questions needs to be very hard, but the experienced senior PHP
                              >developer should answered on it.
                              >>
                              >I've already searched in google and google groups archive but without
                              >any good results. So could anybody help me giving some link or sending
                              >some stuff to me ?
                              >>
                              >Thanks and regards - Peter.
                              >>
                              >PS. It's about the bet with one of my friend :)
                              >>
                              >--
                              >Silly is a state of Mind, Stupid is a way of Life.
                              >
                              Here is one,
                              >
                              If I _do not_ want to suppress warnings in include(...), (in other word
                              not use @include(...))
                              Why is file_exists(... ) alone not a good option.
                              How would you check if a file exists for inclusion.
                              >
                              FFMG
                              >
                              >
                              Use require instead :D

                              --
                              Rami.Elomaa@gma il.com

                              "Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
                              usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze

                              Comment

                              Working...