Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Learning PHP

Learning PHP

Scheduled Pinned Locked Moved The Lounge
learningcsharpjavascriptphp
31 Posts 21 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M MacRaider4

    I just used my first reference variable in a calendar I was working on, and it works... I'm not sure why it works because from everything I learned in C that variable shouldn't exist when I'm using it but for some reason it's still there. It's a bit messed up, but once you get the hang of it, it's not too bad. On a side note, IE seems to hate PHP as I can have a form looking great in Chrome, FireFox and Safari, look at it in IE 6 or 8 and the formatting is all over the place so good luck there as well... Did I mention I hate web programming (but it pays the bills) :laugh:

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #22

    MacRaider4 wrote:

    Did I mention I hate web programming (but it pays the bills)

    Heh ... funny, seems like no one will admit how bad web programming is. Fortunately I don't have to pay the bills doing that! I've worked with it only enough to realize that, ugh ... I don't wanna do that! -Max :D

    A 1 Reply Last reply
    0
    • L l a u r e n

      ultraedit or ultrastudio will do you well as an IDE for PHP PHP is a loosely typed language ... the strings in variables thing is because PHP has a greedy tokenizer that will see anything after a $ sign as a variable name ... if you put your strings in single quotes you get strings as you know them instead PHP is a far superior web scripting language, in my experience, to c# *depending* on what you are trying to achieve if you go into it with an open mind you might find it quite nice oh yeah.. since you are learning from scratch do yourself a favor and go get TinyButStrong (*very* odd name) ... a wicked good template engine that lets you have code behind files just like .NET and keeps things *much* tidier when you get larger projects hth :)

      "mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them"

      L Offline
      L Offline
      LimeyRedneck
      wrote on last edited by
      #23

      For PHP and Web I like Aptana - its eclipse based, and has a very nice little JS server for testing (Jaxer).

      l a u r e n wrote:

      PHP is a far superior web scripting language, in my experience, to c# *depending* on what you are trying to achieve

      "One lets you create defects real fast and the other lets you execute defects real fast" :laugh: All risible commentary aside, Use PHP for rapid feature development, then use C# to provide the bones the PHP meat sits on. Now go wash your hands and don't talk about it :omg:

      Nothing is impossible, we just don't know the way of it yet.

      L 1 Reply Last reply
      0
      • L LimeyRedneck

        For PHP and Web I like Aptana - its eclipse based, and has a very nice little JS server for testing (Jaxer).

        l a u r e n wrote:

        PHP is a far superior web scripting language, in my experience, to c# *depending* on what you are trying to achieve

        "One lets you create defects real fast and the other lets you execute defects real fast" :laugh: All risible commentary aside, Use PHP for rapid feature development, then use C# to provide the bones the PHP meat sits on. Now go wash your hands and don't talk about it :omg:

        Nothing is impossible, we just don't know the way of it yet.

        L Offline
        L Offline
        l a u r e n
        wrote on last edited by
        #24

        LimeyRedneck wrote:

        All risible commentary aside, Use PHP for rapid feature development, then use C# to provide the bones the PHP meat sits on.

        :laugh: :laugh: :laugh: you *are* joking right?

        "mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them"

        1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          I've never really wanted to learn PHP: every time I look at a "code" sample, I am reminded of GWBasic, shudder, and look away again, quickly...

          Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."

          T Offline
          T Offline
          tchris
          wrote on last edited by
          #25

          Funny. Zuckerberg has built a multi-billion dollar business using PHP (Facebook). Just sayin... :laugh:

          OriginalGriffO 1 Reply Last reply
          0
          • T tchris

            Funny. Zuckerberg has built a multi-billion dollar business using PHP (Facebook). Just sayin... :laugh:

            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #26

            Funny indeed: Bill Gates started Microsoft by writing a BASIC interpreter for the Altair. I think he has made a few bucks on that, as well...still doesn't mean I want to code in it! (Or go anywhere near ArseBook) :laugh:

            Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            1 Reply Last reply
            0
            • A AspDotNetDev

              Now that I have a NOOK, I decided to learn a new programming language on a whim. For some reason, PHP was the first thing that came to mind. I downloaded an ebook, "I Hate PHP: A Beginner's Guide to PHP and MySQL", which is the most terrible book I've ever spent money on. Makes sense, since it was like $4. I still haven't installed an IDE (though I downloaded NetBeans), but from what I've read I'd say PHP is like a server side version of JavaScript and whatever "language" you use with the command prompt. It appears that variables are not strongly typed and the use of strings in variables is weird (if the crappy ebook I bought is to be trusted):

              $str1 = "hello";
              $str2 = "world";
              echo "$str1 $str2";
              // This is a comment.

              And this is a comment too? WTF.

              Feels dirty to use variables in a string like that and have them be not be treated as literals. Kinda nifty though. In any event, I'm happy I'm learning PHP. It will give me something to hate much more than VB.NET. :rolleyes:

              [WikiLeaks Cablegate Cables]

              S Offline
              S Offline
              Sterling Camden independent consultant
              wrote on last edited by
              #27

              PHP has all sorts of inconsistent messiness, like how zero is sometimes false: http://www.chipstips.com/?p=168

              Contains coding, but not narcotic.

              1 Reply Last reply
              0
              • L Lost User

                MacRaider4 wrote:

                Did I mention I hate web programming (but it pays the bills)

                Heh ... funny, seems like no one will admit how bad web programming is. Fortunately I don't have to pay the bills doing that! I've worked with it only enough to realize that, ugh ... I don't wanna do that! -Max :D

                A Offline
                A Offline
                Alexander DiMauro
                wrote on last edited by
                #28

                Hey, as a web programmer...I...I...I...ok, I don't protest. It does suck. But mostly on the front-end with all the lack of standards everywhere. On the server side, I'm quite happy... :-D

                When writing code, don't forget to account for Ewoks!

                L 1 Reply Last reply
                0
                • A AspDotNetDev

                  Now that I have a NOOK, I decided to learn a new programming language on a whim. For some reason, PHP was the first thing that came to mind. I downloaded an ebook, "I Hate PHP: A Beginner's Guide to PHP and MySQL", which is the most terrible book I've ever spent money on. Makes sense, since it was like $4. I still haven't installed an IDE (though I downloaded NetBeans), but from what I've read I'd say PHP is like a server side version of JavaScript and whatever "language" you use with the command prompt. It appears that variables are not strongly typed and the use of strings in variables is weird (if the crappy ebook I bought is to be trusted):

                  $str1 = "hello";
                  $str2 = "world";
                  echo "$str1 $str2";
                  // This is a comment.

                  And this is a comment too? WTF.

                  Feels dirty to use variables in a string like that and have them be not be treated as literals. Kinda nifty though. In any event, I'm happy I'm learning PHP. It will give me something to hate much more than VB.NET. :rolleyes:

                  [WikiLeaks Cablegate Cables]

                  F Offline
                  F Offline
                  fuximus
                  wrote on last edited by
                  #29

                  People saying bad things about PHP, there are numerous weird things in PHP, but you don't have to use them, choose your own style and go with it. I've been around PHP for 6 years now, made my mistakes, it's all about having your own standards that you follow. For example, i'd never echo "$str $str2"; i'd always echo $str." ".$str; and for some reason I never $some_str = 'this is some string'; i'd always $some_str = "this is some string"; it's kinda weird but it works for me, and always take care of all notices. PHP is actually a very strong and a very capable language, it's just that developers don't pay attention to the details of what they're writing, and tend to botch things up ending up with a big pile of mess.

                  1 Reply Last reply
                  0
                  • A Alexander DiMauro

                    Hey, as a web programmer...I...I...I...ok, I don't protest. It does suck. But mostly on the front-end with all the lack of standards everywhere. On the server side, I'm quite happy... :-D

                    When writing code, don't forget to account for Ewoks!

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #30

                    Alexander DiMauro wrote:

                    Hey, as a web programmer...I...I...I...ok, I don't protest. It does suck. But mostly on the front-end with all the lack of standards everywhere. On the server side, I'm quite happy... :-D

                    LOL! An honest man we have here! Yeah, that's pretty much how I saw it when I studied and played with it for awhile. I took and rewrote a fairly complex application we have in our suite for the web just to see how it could turn out. It came out OK but I was amazed at how difficult it was to get the screen the way I wanted it. I quickly discovered that the concept of WYSIWYG simply doesn't exist in the web GUI. Even with a tool as sophisticated as Visual Studio the screen designer just gives you a *rough* idea of what the output is going to look like. Add 3 or 4 layers of tables or something and, forget it. I found myself back onto the HTML side manually building the tables to make 'em come out the way they needed to be. Then I'd try a different browser and, doggone it, the markup produced slightly different results! Ugh ... give me Windows Forms any day. Agree ... the server side isn't the problem. It's rendering the result that's a huge pain-in-the-arse. I respect the guys that have the patience to put together some of these super sophisticated web pages these days - I know now that it ain't easy at all. You really have to be a graphics artist to put together that stuff. I'm a nuts and bolts kind of developer. I'm "barely" GUI ... as long as my screen components can be crisp looking and accurate I'm good. I'm about all the underlying logic that makes the application work. I really prefer the performance of a desktop application to a web-based one - however on the performance end the web stuff is getting much better. Maybe when we all agree to standardize on just one browser? ... heh ... -Max :D

                    1 Reply Last reply
                    0
                    • A AspDotNetDev

                      Now that I have a NOOK, I decided to learn a new programming language on a whim. For some reason, PHP was the first thing that came to mind. I downloaded an ebook, "I Hate PHP: A Beginner's Guide to PHP and MySQL", which is the most terrible book I've ever spent money on. Makes sense, since it was like $4. I still haven't installed an IDE (though I downloaded NetBeans), but from what I've read I'd say PHP is like a server side version of JavaScript and whatever "language" you use with the command prompt. It appears that variables are not strongly typed and the use of strings in variables is weird (if the crappy ebook I bought is to be trusted):

                      $str1 = "hello";
                      $str2 = "world";
                      echo "$str1 $str2";
                      // This is a comment.

                      And this is a comment too? WTF.

                      Feels dirty to use variables in a string like that and have them be not be treated as literals. Kinda nifty though. In any event, I'm happy I'm learning PHP. It will give me something to hate much more than VB.NET. :rolleyes:

                      [WikiLeaks Cablegate Cables]

                      P Offline
                      P Offline
                      Patrick Gervais
                      wrote on last edited by
                      #31

                      I love PHP, I used to use .net but then had to start hosting a PHP website and rebuild and integrate the missing MYSQL database. By analyzing the existing code and visiting http://www.w3schools.com/php/default.asp for anything I did not understand, I managed to have the basics figured out in an afternoon. I was shocked by how simple it was to pick up, and I will never look back at .NET. I still visit w3schools any time I’m foggy about something I haven’t used in a while… but I think it’s the only resource you need. since then every website I build is PHP/MYSQL/JavaScript/HTML/CSS and sometimes XML …soon I plan to take a peak at ruby on rails. Btw, IE hates HTML/CSS …(and I hate IE) PHP is handled on the server and only it’s output is seen by the browser.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups