PHP book for n00b?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kooldino
    Super MURCer
    • Nov 2002
    • 3026

    #1

    PHP book for n00b?

    Hi, all.
    I'm looking to learn PHP, but know almost nothing about it, although I'm an experienced programmer. I have access to a server that runs PHP, so I can test all of my work on there.

    Didn't know if any of you guys had any reccomendations on an easy to follow PHP book aimed at teaching someone who knows no PHP?

    Here's what I could find on Amazon:

  • Rob(QG)
    MURCer
    • Apr 2002
    • 268

    #2
    Did you check out the online manual, as that should be enough to get you started?

    Comment

    • Helevitia
      Super MURCer
      • Aug 1999
      • 6628

      #3
      W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
      Ladies and gentlemen, take my advice, pull down your pants and slide on the ice.

      Comment

      • Kooldino
        Super MURCer
        • Nov 2002
        • 3026

        #4
        Originally posted by Helevitia
        This isn't half bad. Thanks, Helevitia.

        Comment

        • Kooldino
          Super MURCer
          • Nov 2002
          • 3026

          #5
          So far I wrote this:
          The definitive Mazda Owners Community & Resource. Covers CX SUVs, MX-5, Mazda3, SkyActiv & Rotaries. Discuss DIY maintenance, tuning, firmware updates & EV tech


          I manually do an "ls > ls.txt" command in my user directory.

          Then I run fileinput.php3, and it spits out what you see.

          Not bad for 1.5 hours into learning PHP.

          Now I just want to figure out a way to have the sever automatically do the "ls > ls.txt".

          I like PHP so far.

          Comment

          • dbdg
            Super MURCer
            • Sep 1999
            • 1030

            #6
            This is a good book, as is the advanced version and the php & mysql version. All the visual quickstart guides are really good.

            As Rob says don't forget the manual.

            Comment

            • Rakido
              Super MURCer
              • Feb 2000
              • 1313

              #7
              There are lots of manuals around, i could recommend the following:

              from Zend (creators of the php engine):


              PHP and Mysql:
              We bring you the future as it happens. From the latest in science and technology to the big stories in business and culture, we've got you covered.



              Rakido
              "Women don't want to hear a man's opinion, they just want to hear their opinion in a deeper voice."

              Comment

              • Kooldino
                Super MURCer
                • Nov 2002
                • 3026

                #8
                Originally posted by Kooldino
                So far I wrote this:
                The definitive Mazda Owners Community & Resource. Covers CX SUVs, MX-5, Mazda3, SkyActiv & Rotaries. Discuss DIY maintenance, tuning, firmware updates & EV tech


                I manually do an "ls > ls.txt" command in my user directory.

                Then I run fileinput.php3, and it spits out what you see.

                Not bad for 1.5 hours into learning PHP.

                Now I just want to figure out a way to have the sever automatically do the "ls > ls.txt".

                I like PHP so far.
                I figured out how to do it...the "system" command lets you run a command to the system, so I used it to do my "ls > ls.txt" for an updated directory listing each time it's run.

                Then I added a hit counter.

                woo.

                :wq!

                Comment

                • dbdg
                  Super MURCer
                  • Sep 1999
                  • 1030

                  #9
                  Well done Kooldino, you'll be a freelance web developer in no time.

                  Took me about 8 months of learning by working on my own site and then I was developing for clients.

                  Comment

                  • Kooldino
                    Super MURCer
                    • Nov 2002
                    • 3026

                    #10
                    BTW, here's my source code so far, in case you care:

                    Code:
                    <?php
                    system ('ls > ls.txt');
                    if (!($input_file=fopen("ls.txt","r")))
                    exit("Unable to open file.");
                    while (!feof($input_file))
                    {
                     $x=fgetc($input_file);
                     if ($x=="\n")
                     {
                      echo "<a href=\"".$word."\">".$word."</a><BR>";
                      $word="";
                     }
                    
                    elseif ($x!="\n")
                     {
                      $word=$word.$x;
                     }
                    }
                    
                    fclose($input_file);
                    
                    for ($lcv=1;$lcv<10;$lcv++)
                     {
                      echo"<BR>";
                     }
                    
                    if (!($counter_file=fopen("counter.txt","r")))
                    exit ("Unable to open file!");
                    
                       $temp_int=fgets($counter_file);
                       if (!($temp_int==feof)) $counter_int=$temp_int;
                    
                    $counter_int=$counter_int+1;
                    fclose ($counter_file);
                    
                    echo "<B><CENTER>".$counter_int."</CENTER></B>";
                    
                    if (!($counter_file=fopen("counter.txt","w")))
                    exit ("Unable to open file!");
                    
                    fwrite ($counter_file, $counter_int);
                    fclose ($counter_file);
                    ?>
                    (since then, i've updated the code so that I don't need to use a file for the "ls")
                    Last edited by Kooldino; 14 March 2005, 16:01.

                    Comment

                    Working...