We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6228
    • 249 Posts
    Quote from: sottwell at Mar 29, 2010, 06:57 AM

    I don’t do OOP. I see no point in it in a web application. Just sucks up memory and processor resources to no particular purpose.

    I find that startling. I don’t believe I’ve ever come across a programmer who finds zero merit in OOP for web applications. But then again, programming style is as personal as the kind of car you drive!
      lo9on.com

      MODx Evolution/Revolution | Remote Desktop Training | Development
      • 16702 ☆ A M B ☆
      • 536 Posts
      Quote from: rthrash at Jun 21, 2005, 09:12 AM

      Thanks for the offer Susan, that’d be great. Would you like me to creat a separate "training" forum for you?

      Somewhat related, there are some great "cheat sheets" available for CSS, PHP and MySQL (and more) here:

      http://www.ilovejackdaniels.com/

      " The address www.ilovejackdaniels.com could not be found. "
      huh shocked grin
        palma non sine pulvere
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        But then again, programming style is as personal as the kind of car you drive!
        I don’t have a car grin grin
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 25663 MODX Staff
          • 12,272 Posts
          Quote from: Kristalin at Apr 06, 2010, 05:57 PM

          Quote from: rthrash at Jun 21, 2005, 09:12 AM

          Thanks for the offer Susan, that’d be great. Would you like me to creat a separate "training" forum for you?

          Somewhat related, there are some great "cheat sheets" available for CSS, PHP and MySQL (and more) here:

          http://www.ilovejackdaniels.com/

          " The address www.ilovejackdaniels.com could not be found. "
          huh shocked grin

          Dave’s updated his URL due to a copyright "discussion" a few years back: http://www.addedbytes.com (and he’s a MODxer now too, with his new site running on MODx!)
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 14374
            • 1 Posts
            Hi Susan

            It’s really Good idea to teach basic PHP and MySQL.I have little bit knowledge of PHP and i want to learn more about it and this will be helpful for me. thanks...
              spam signature removed by admin
              • 21759
              • 139 Posts
              This is a great thread and I too am a php wannabe. I find it hard to grasp no matter how many tutorials I read through. I just cannot seem to put it together like I should. I thought that with it being defined as a language there might be a structure of sorts like vowels, verbs, adjectives, sentences, pargraphs etc in the english language but that doesn’t seem to be the case. I like the video link as hopefully I will find the time to go through it all. Maybe it is just me...Oh well I’ll keep pluggin along through the links provided here.
                • 3749
                • 24,544 Posts
                Just a note. My book, (due "real soon now"), has a PHP Primer in the Appendix. smiley
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  It does have structures like a "spoken" language. Nouns are variables. Verbs are functions.

                  Sentences are statements that end with a ; instead of . They can range from
                  $myVar = "hello, world";

                  to interesting structures like
                  $myVar = isset($anotherVar) ? $anotherVar : "Hello, world";

                  which reads "is $anotherVar set to a true value (anything other than empty, false, or 0)? then $myVar is set to the value of $anotherVar; if it isn’t (or doesn’t exist at all), then $myVar is set to "Hello, world".

                  Paragraphs are blocks of statements enclosed in { } curly braces; usually these are blocks of code inside a function, a loop, or an "if..." structure.

                  Objects are like short stories; they encapsulate all of the variables and functions that will be used to deal with a "topic", such as logging in/logging out a user. Or, as in the case of even MODx Evo, the document parser object, which contains all the variables (pagetitle, content, etc) related to the page being generated, and all of the functions that process the MODx tags in the original resource and template.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 21759
                    • 139 Posts
                    grin Thank you I knew it had to be structured similar to the english language I just couldn’t understand how. That explanation of what the code actually says was great.
                    which reads "is $anotherVar set to a true value (anything other than empty, false, or 0)? then $myVar is set to the value of $anotherVar; if it isn’t (or doesn’t exist at all), then $myVar is set to "Hello, world".
                    Is there somewhere that lays out some examples such as you provided? That is where I struggle trying to figure out how to say what I want to say not knowing what each function or variables actually stand for or mean. Or even how to structure them to say what I want to say.

                    By the way the free video tutorial I found while browsing through the links provided is not too bad other than the memorizing portion as I’m not good with understanding his methods of image memorizing. Still I’m learning more than at other tutorials I’ve tried. wink
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      I learned from these tutorials http://devzone.zend.com/article/627-PHP-101-PHP-For-the-Absolute-Beginner

                      I spend a lot of time just reading the php documentation (especially the user comments)
                      http://www.php.net/manual/en/langref.php

                      This is an excellent source as well http://www.tuxradar.com/practicalphp
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org