Hello

I have joined alot of other Community many years ago just trying to learn php/mysql but for some reson i can't understand this lang how it work .. or how i can write my own software use php/mysql

every community i join and i ask ... they point me to www.php.net and asking me to read the tut over there.. but as i'm newbie i dont no and i will not understand if i read the tut so that really dose not help me to learn this ..

so here i'm posting this thread and i hope someone from this community going to show me how can i start learning and writing my own software ..

Remember i'm newbie and i dont no nathing about php / my sql but i i'm good in installing PHPSoftware install hack etc.. i have a good backround in html

i dont no how easy it is going to be to learn php .. so please help me on this ..

Thankyou
~PR 😉

    Well you can't expect to learn it overnight

    first you'll need to start with the basics which I think are "echo, conditionals, includes and switch statements".

    The "echo" function is the most used and most basic.
    It's purpose is to display text that is enlosed in "echo".
    By itself this is pointless because you can just use html but pair it with other php elements (if that's the word) and you'll create a php script... :bemused: I'm not creative.

    I would recommend Crimson Editor to code with. (Just search google)
    I haven't tried the other editors

    Let's get started on test.php

    <?php
    
    echo "Test";
    
    ?>

    In the above php code block you'll notice I have used <?php at the top and ?> at the bottom.
    The php start tag lets the server know it needs to parse php. If you do not do this Then you're code with display on the screen.

    So you should have "test.php" done. Now just upload it to your site and go to the file. www.your_site.com/test.php

    This is your first lesson.
    Post the link to this script when you're done and I'll tell you more.

      Well you can't expect to learn it overnight or even in a month.

      first you'll need to start with the basics which I think are "echo, conditionals, includes and switch statements".

      The "echo" function is the most used and most basic.
      It's purpose is to display text that is enlosed in "echo".
      By itself this is pointless because you can just use html but pair it with other php elements (if that's the word) and you'll create a php script... :bemused: I'm not creative.

      I would recommend Crimson Editor to code with. (Just search google)
      I haven't tried the other editors

      Let's get started on test.php

      <?php
      
      echo "Test";
      
      ?>

      In the above php code block you'll notice I have used <?php at the top and ?> at the bottom.
      The php start tag lets the server know it needs to parse php. If you do not do this Then you're code with display on the screen.

      So you should have "test.php" done. Now just upload it to your site and go to the file. www.your_site.com/test.php

      This is your first lesson.
      Post the link to this script when you're done and I'll tell you more.

        If you can't understand the tutorial at PHP.net then you will never learn PHP much less MySQL.

          rincewind456 wrote:

          If you can't understand the tutorial at PHP.net then you will never learn PHP much less MySQL.

          Ignore this statement - it's not true.

          I've found that for some folks it can take time to understand the basics - which needs more than the php.net tutorial. When you get the basicis go back to the tutorials and they will be easier to deal with.

            The very best introduction that I know of are the 4 sample chapters from Kevin Yank's book that you can download from Sitepoint . You'll get a clear understanding of how php/mysql/html fit together and gain the confidence to have a go yourself.

              vaaaska wrote:

              Ignore this statement - it's not true.

              I've found that for some folks it can take time to understand the basics - which needs more than the php.net tutorial. When you get the basicis go back to the tutorials and they will be easier to deal with.

              What is more basic than

              <html>
              <head>
               <title>PHP Test</title>
              </head>
              <body>
              <?php echo '<p>Hello World</p>'; ?>
              </body>
              </html>

              which is the first part of the PHP.net tutorial.

                rincewind456 wrote:

                If you can't understand the tutorial at PHP.net then you will never learn PHP much less MySQL.

                "...the tutorial" is not very specific thing to say is it? And that is only one example of a bigger thing. Plus, it's not really that helpful preparing folks for the real tools they need to get rolling.

                  vaaaska wrote:

                  "...the tutorial" is not very specific thing to say is it? And that is only one example of a bigger thing. Plus, it's not really that helpful preparing folks for the real tools they need to get rolling.

                  What?

                  How many tutorials are there at PHP.net?

                  Only one I've found is http://uk.php.net/tut.php.

                  Can't be much more specific than that.

                    Same thing, it is not enough to get somebody to truly understand how php works. Echoing out a var is nothing.

                    PR, check out Hudzilla or the Sitepoint thing for initial reading - you'll do just fine. Come back and join us for more help when you have specific questions and or code to work with. 😉

                      rincewind456 wrote:

                      If you can't understand the tutorial at PHP.net then you will never learn PHP much less MySQL.

                      Even the tutorial states that the basics are best learned by getting a hold of a book and that the tutorial is simply a quick intro into what PHP does. I've been doing PHP for 3 years now - I came from a background of zero programming knowledge. I learned XHTML in a week and then got into WAMP through a good friend of mine. I still find large sections of the PHP manual challenging.

                      Norman

                        Hello

                        Thanks everyone for the nice Commants in this thread and hope this thread going to be full info to every newbie like me

                        the problem is The English is not my Mother lang so i find that the php.net tutorial is hard to understand even there is no tutorial in my lang ..

                        @ Thanks for the link you give me and i save it in my bookmark .. dont you think it is the same php.net manual ? well i have to take a look Close. 🙂

                        @ Thanks for this nice tut i think i understand this stuff good because i have good backround in html

                        example

                        <html>
                        
                        <head>
                        <title>PHP Builder.Com</title>
                        </head>
                        
                        <body>
                        <B>Test</B>
                        
                        </body>
                        
                        </html>
                        

                        what i mean is how can i write a full code like say that i need to creat CMS where do i need to get code what do i need to understand in this . ?

                        anyway this week i will take time to read this forum and every tut that posted here and in the main page and then i will keep flooding this site with all my Q 😃

                        Thanks everyone 😉
                        ~PR

                          I too am learning php/mysql web development from scratch, and I've found that with some good books (I'm using the Wrox series) and a lot of tinkering I'm picking it up, though I'll definitely read the tutorials posted above.

                          I've also found that with learning anything, the best way to learn it (at least for me) is to work towards a final project.

                          Currently I'm going to be developing a website for a MUD game based on c++ that is fully integrated. Things that happen within the game server will generate data in xml files, and will also populate certain things in the database. I'll be integrating phpbb2 as well, so that the only way to get an account on the forums is to actually login to the game and create a character. Then, I'll be working on forms so that certain actions can be done through the website (such as commerce type things) that will create items in the game.

                          Anyway, that's my project, so I'm sure I'll be asking my fair share of questions here too.

                          Good luck in learning, and remember...

                          After the game, the king and pawn go into the same box.

                            [FONT=Tahoma]If it was easy we would not do it.[/FONT]

                            Behind every programming language lies the need for a worthwhile problem to solve with it. Implicit in this is the fact that the more complex and interesting the problems a programming language can be used to solve, the more difficult will it be to master.

                            PHP allows you to stand back and attack problems from many different angles, and choosing which approach to use can be the main problem sometimes. Then they can be ridiculously simple to solve.

                            Jumping into a complex project can therefore, and perhaps surprisingly, be a big mistake. You will get trapped into using the same set of analytical tools for too many things and never learn about or explore other techniques. That is the benefit of a forum like this: by working out on lots of problems even very experienced coders can learn about other approaches and techniques from others. Newbies can learn a lot from just reading the threads and trying out code samples posted here.

                            The thing is, you cannot do any damage, it is only a program you are running. Provided you keep backups of everything you can always go back and try again.

                            If your real problem is that you need to learn how to analyse a problem and design a solution, then that is another matter. That problem has little connection to learnig any given language. Like human languages, learning to speak any one has little bearing on the quality of the books or articles, even jokes, that you could write in it.

                            I'm sorry they have not yet produced a manual or tutorial in your native language, not a lot we can do for that. Don't suppose there is a book in your language either.

                              Write a Reply...