std_lib contest

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

    std_lib contest

    Hi php folks all around the globe!

    I have come to the conclusion that programming with php comes much more fun,
    if you have well done library of functions that you need every day! Of
    course one could say that is'nt php already too full of functions. My
    opinion is that good library is very handy.

    Small example:

    //*************** *************** *************** *********
    function got($v)
    {
    if (isset($_REQUES T[$v])) return $_REQUEST[$v];
    else return false;
    }
    //*************** *************** *************** *********
    function has_got($v)
    {
    if (isset($_REQUES T[$v]))
    {$_SESSION[$v] = $_REQUEST[$v]; return $_REQUEST[$v];}
    elseif (isset($_SESSIO N[$v])) return $_SESSION[$v];
    else return false;
    }

    instead of writing all the time if(isset($_REQU EST['name'])...
    write if (got('name')).. .
    and has_got is even more useful

    So, I would like to open contest of best php standard library!
    Send your lib here and enjoy international glory...

    - perttu p, finland


  • Cameron

    #2
    Re: std_lib contest

    Perttu Pulkkinen wrote:[color=blue]
    > Hi php folks all around the globe!
    >
    > I have come to the conclusion that programming with php comes much more fun,
    > if you have well done library of functions that you need every day! Of
    > course one could say that is'nt php already too full of functions. My
    > opinion is that good library is very handy.
    >
    > Small example:
    >
    > //*************** *************** *************** *********
    > function got($v)
    > {
    > if (isset($_REQUES T[$v])) return $_REQUEST[$v];
    > else return false;
    > }
    > //*************** *************** *************** *********
    > function has_got($v)
    > {
    > if (isset($_REQUES T[$v]))
    > {$_SESSION[$v] = $_REQUEST[$v]; return $_REQUEST[$v];}
    > elseif (isset($_SESSIO N[$v])) return $_SESSION[$v];
    > else return false;
    > }
    >
    > instead of writing all the time if(isset($_REQU EST['name'])...
    > write if (got('name')).. .
    > and has_got is even more useful
    >
    > So, I would like to open contest of best php standard library!
    > Send your lib here and enjoy international glory...
    >
    > - perttu p, finland
    >
    >[/color]

    Am I being too paranoid or does this post cause some suspicion for
    others too ;)

    ~Cameron

    Comment

    • Perttu Pulkkinen

      #3
      Re: std_lib contest


      "Cameron" <foo@bar.invali d> kirjoitti viestissä
      news:bvomdn$1e7 $1@news7.svr.po l.co.uk...
      [color=blue]
      > Am I being too paranoid or does this post cause some suspicion for
      > others too ;)
      > ~Cameron[/color]

      I dont think you are paranoid, but there is nothing to suspect. If somebody
      wants to send standard functions here (not his special login/cryptography
      things) it is only useful to everybody, me and you included.

      Or was the word contest too much said? Sorry, I should have use some other
      word perhaps. No contest, nobody wins, no prices, just fun with php.

      - peace, perttu p





      Comment

      • Cameron

        #4
        Re: std_lib contest

        Perttu Pulkkinen wrote:[color=blue]
        > "Cameron" <foo@bar.invali d> kirjoitti viestissä
        > news:bvomdn$1e7 $1@news7.svr.po l.co.uk...
        >
        >[color=green]
        >>Am I being too paranoid or does this post cause some suspicion for
        >>others too ;)
        >>~Cameron[/color]
        >
        >
        > I dont think you are paranoid, but there is nothing to suspect. If somebody
        > wants to send standard functions here (not his special login/cryptography
        > things) it is only useful to everybody, me and you included.
        >
        > Or was the word contest too much said? Sorry, I should have use some other
        > word perhaps. No contest, nobody wins, no prices, just fun with php.
        >
        > - peace, perttu p
        >[/color]

        lol nah, it's just me being myself (Some bad experiences with people and
        code) shame I don't have time to submit something, hope to put together
        a PHP website (Kinda) when I have the time, and no not another developer
        repository, I don't have the bandwidth or disk space for that ;)

        ~Cameron

        Comment

        • CountScubula

          #5
          Re: std_lib contest

          http://www.gzentools.com -- free online php tools
          "Cameron" <foo@bar.invali d> wrote in message
          news:bvonou$gg9 $1@news6.svr.po l.co.uk...[color=blue]
          > Perttu Pulkkinen wrote:[color=green]
          > > "Cameron" <foo@bar.invali d> kirjoitti viestissä
          > > news:bvomdn$1e7 $1@news7.svr.po l.co.uk...
          > >
          > >[color=darkred]
          > >>Am I being too paranoid or does this post cause some suspicion for
          > >>others too ;)
          > >>~Cameron[/color]
          > >
          > >
          > > I dont think you are paranoid, but there is nothing to suspect. If[/color][/color]
          somebody[color=blue][color=green]
          > > wants to send standard functions here (not his special[/color][/color]
          login/cryptography[color=blue][color=green]
          > > things) it is only useful to everybody, me and you included.
          > >
          > > Or was the word contest too much said? Sorry, I should have use some[/color][/color]
          other[color=blue][color=green]
          > > word perhaps. No contest, nobody wins, no prices, just fun with php.
          > >
          > > - peace, perttu p
          > >[/color]
          >
          > lol nah, it's just me being myself (Some bad experiences with people and
          > code) shame I don't have time to submit something, hope to put together
          > a PHP website (Kinda) when I have the time, and no not another developer
          > repository, I don't have the bandwidth or disk space for that ;)
          >
          > ~Cameron[/color]

          sound like you have been bit, or should I say got("bit"); or was it
          has_got("bit");

          Hmm,

          if ($has_got("bit" ) != false) {
          $noPost = true;
          $myOpinion = "\$.02";
          }

          --
          Mike Bradley



          Comment

          • Cameron

            #6
            Re: std_lib contest

            CountScubula wrote:[color=blue]
            > http://www.gzentools.com -- free online php tools
            > "Cameron" <foo@bar.invali d> wrote in message
            > news:bvonou$gg9 $1@news6.svr.po l.co.uk...
            >[color=green]
            >>Perttu Pulkkinen wrote:
            >>[color=darkred]
            >>>"Cameron" <foo@bar.invali d> kirjoitti viestissä
            >>>news:bvomdn$ 1e7$1@news7.svr .pol.co.uk...
            >>>
            >>>
            >>>
            >>>>Am I being too paranoid or does this post cause some suspicion for
            >>>>others too ;)
            >>>>~Cameron
            >>>
            >>>
            >>>I dont think you are paranoid, but there is nothing to suspect. If[/color][/color]
            >
            > somebody
            >[color=green][color=darkred]
            >>>wants to send standard functions here (not his special[/color][/color]
            >
            > login/cryptography
            >[color=green][color=darkred]
            >>>things) it is only useful to everybody, me and you included.
            >>>
            >>>Or was the word contest too much said? Sorry, I should have use some[/color][/color]
            >
            > other
            >[color=green][color=darkred]
            >>>word perhaps. No contest, nobody wins, no prices, just fun with php.
            >>>
            >>>- peace, perttu p
            >>>[/color]
            >>
            >>lol nah, it's just me being myself (Some bad experiences with people and
            >>code) shame I don't have time to submit something, hope to put together
            >>a PHP website (Kinda) when I have the time, and no not another developer
            >>repository, I don't have the bandwidth or disk space for that ;)
            >>
            >>~Cameron[/color]
            >
            >
            > sound like you have been bit, or should I say got("bit"); or was it
            > has_got("bit");
            >
            > Hmm,
            >
            > if ($has_got("bit" ) != false) {
            > $noPost = true;
            > $myOpinion = "\$.02";
            > }
            >
            > --
            > Mike Bradley
            >[/color]

            Nah, not bit, just royally screwed ;) and a $ infront of the function
            name? ;)

            ~Cameron

            Comment

            • CountScubula

              #7
              Re: std_lib contest

              "Cameron" <foo@bar.invali d> wrote in message
              news:bvotd0$l4r $1@news6.svr.po l.co.uk...[color=blue]
              > [snipy...]
              > if ($has_got("bit" ) != false) {
              > $noPost = true;
              > $myOpinion = "\$.02";
              > }
              >[/color]
              [color=blue]
              > Nah, not bit, just royally screwed ;) and a $ infront of the function
              > name? ;)
              >
              > ~Cameron[/color]

              the $ in front of functin, my mistake, I am really tired, up too lage and
              the nudy bar last night.

              ok, I rewrite

              if ( (has_got("screw ed") != false) )
              {
              if (has_got("royal ly") != false)
              {
              $Cameron = "bitter";
              }
              else
              {
              return "\$.02";
              }
              }


              ok, too tired, too silly, not makin sense ;)
              --
              Mike Bradley
              http://www.gzentools.com -- free online php tools


              Comment

              • Cameron

                #8
                Re: std_lib contest

                CountScubula wrote:[color=blue]
                > "Cameron" <foo@bar.invali d> wrote in message
                > news:bvotd0$l4r $1@news6.svr.po l.co.uk...
                >[color=green]
                >>[snipy...]
                >> if ($has_got("bit" ) != false) {
                >> $noPost = true;
                >> $myOpinion = "\$.02";
                >> }
                >>[/color]
                >
                >[color=green]
                >>Nah, not bit, just royally screwed ;) and a $ infront of the function
                >>name? ;)
                >>
                >>~Cameron[/color]
                >
                >
                > the $ in front of functin, my mistake, I am really tired, up too lage and
                > the nudy bar last night.
                >
                > ok, I rewrite
                >
                > if ( (has_got("screw ed") != false) )
                > {
                > if (has_got("royal ly") != false)
                > {
                > $Cameron = "bitter";[/color]

                exec "mv /dev/screwer /dev/null";
                [color=blue]
                > }
                > else
                > {
                > return "\$.02";
                > }
                > }
                >
                >
                > ok, too tired, too silly, not makin sense ;)
                > --
                > Mike Bradley
                > http://www.gzentools.com -- free online php tools
                >
                >[/color]

                lol not really bitter was a long time ago, just makes me suspicious of
                everyone and everything ;)

                ~Cameron

                Comment

                Working...