I read the lessons on w3schools and i want to know what to do next

Discussion in 'PHP' started by Sayed Basiony, May 18, 2009.

  1. #1
    Hi Guys,
    I am new to php and i just read the lessons on w3schools.com (PHP Basic,PHP Advanced,PHP Database) and i still not able to put my hands on php and how to code scripts.

    I am trying to learn php to code scripts.

    So code you guys help me and tell me what should i do next?

    Thanks,
    Sayed
     
    Sayed Basiony, May 18, 2009 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    ok.. first you need a localhost.
    sample of these is wamp 2.0
    its a freeware so install it first..wamp will run php script.
     
    bartolay13, May 18, 2009 IP
  3. vaibhavcoder

    vaibhavcoder Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,

    After installing WAMP(Windows Apache Mysql PHP) decide what do you want to code for example a hello word program.
    1.create one php page with the help of any available editor like (edit plus)
    2.write this code
    <?php
    $var='Hello World';
    echo $var;
    ?>
    3.save this page in your www folder in wamp.
    4.run it through your browser

    5.that is all

    you can plan some good application as well like user management or something.

    Noddy
     
    vaibhavcoder, May 18, 2009 IP
  4. MTExpert

    MTExpert Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The best thing is like the others said. Get your hands dirty!

    Think of some simple web script and then learn how to do it. Build from that starting point.

    When I say simple I mean super easy simple:
    <?php
    $var='Hello World';
    echo $var;
    ?>
    Code (markup):
    For example, look into how to output the current date and make timestamps. Look at other people's source code. php.net/quickref.php should be a friend of yours.

    After you understand how to manipulate data with PHP, you can delve into how to use mysql database data with PHP. Make no mistake it will take some time.

    The way you will learn is by doing, so just think of some simple function and then learn how to do it.
     
    MTExpert, May 19, 2009 IP
  5. Sayed Basiony

    Sayed Basiony Peon

    Messages:
    114
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks Guys for your answers,
    But i am pass the point where i have to install Apache on my computer.
    I am asking for a place where i can find some simple scripts being analyzed and explained so i could get some thoughts into my head.

    Thanks,
    Sayed
     
    Sayed Basiony, May 19, 2009 IP
  6. ezprint2008

    ezprint2008 Well-Known Member

    Messages:
    611
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    140
    Digital Goods:
    1
    #6
    Buy a PHP book. Its the most in depth youre gonna get on PHP. Otherwise you'll be chasing pieces around the Internet. Get a PHP book, and use this forum to look at all the other possiblities beyond the basics, but for basics get a book. i had Sams teach yourself - PHP , SQL and APache ALL in One book. It was pretty decent. I still read it once in awhile when im in the comode office. :D
     
    ezprint2008, May 19, 2009 IP
  7. szalinski

    szalinski Peon

    Messages:
    341
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    szalinski, May 22, 2009 IP
  8. Fareast

    Fareast Banned

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    search about php e book at scribid. its has many book there. or get lynda.com video tutorial. its show you step by step about php and mysql
     
    Fareast, May 22, 2009 IP
  9. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #9
    Sayed, im in about the same position as you, currently what ive been doing is reading php on w3schools as you mentioned that you have done, im still reading on there tonight but going through the SQL tutorial at the moment, i also went through the PHP 101 mentioned by szalinski, ive started reading the php.net documentation but aside from doing all this i realise, as mentioned above that i wont begin properly learning until i try and learn how to code a login/password feature or something.

    There are individual tutorials focusing on individual features to code, like a login feature or other things, have you trued searching php tutorials in google to see if it bring up something you may want to work through?

    Maybe try tutorials here http://www.pixel2life.com/tutorials/php_coding/

    Something thats on my mind is while il be trying to do the same as you il try to go beyond what those tutorials are showing so that it forces me to understand more, otherwise it will feel like im just robbing other peoples work and putting together something thats got peices from all over the place.

    Im brand new to it so at the moment i feel very illiterate around php but il stick with it.
     
    pipes, May 23, 2009 IP
  10. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Cash Nebula, May 25, 2009 IP