Perl vs Php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JTM
    Member
    • Jun 2004
    • 31

    #1

    Perl vs Php

    I honestly dont know either perl or php, but which ones better? As some of you know I am trying to make a text based game and need to work with databases and stuff. I have 2 php books and still cant figure out how to make a database work or anything. My friend whos helping me with this also knows nothing. He thought Perl would be easier for databases and stuff. We both dont know anything but which one would be easier to learn and work with?
    This is your life and it's ending one minute at a time
  • sdjl
    Senior Member
    • Mar 2004
    • 502

    #2
    If you don't know anything about either language then in theory, either one you could use..
    I'm a PHP man personally. Its all about preference and whether you have the patience and time to learn the language, not really what other people think.

    It's your choice at the end of the day.

    David
    -----
    Do you fear the obsolescence of the metanarrative apparatus of legitimation?

    Comment

    • JTM
      Member
      • Jun 2004
      • 31

      #3
      well do u know anything on which one would be easier to learn... cause i have 2 php books and honestly i cant code a database.. i dunno what im doing and its sad.. anyone wanna help me?
      This is your life and it's ending one minute at a time

      Comment

      • openbox
        Senior Member
        • Mar 2004
        • 238

        #4
        If you're worried about databases, then you should probably invest in a database/MySQL book I have the book "PHP and MySQL Web Development" and it's a fairly good book IMO. It has quite a few examples and walks you through from the beginning.

        Comment

        • JTM
          Member
          • Jun 2004
          • 31

          #5
          I have a book just like that and i copied the database codes from it.. and it doesnt work i think im missing the user password host stuff but i dunno what that is and i tried to figure something out with the stuff on the cpanel but i dont under stand those either.. and one of them i cant login. it says login failed..
          This is your life and it's ending one minute at a time

          Comment

          • openbox
            Senior Member
            • Mar 2004
            • 238

            #6
            Have you successfully created the database in cPanel? Make sure you're using the correct form of the username when logging in to the db (e.g. username_database)

            Comment

            • sdjl
              Senior Member
              • Mar 2004
              • 502

              #7
              Might be worth checking that you've also assigned the username you created for the database to the database itself.
              That can be done under the MySQL Databases link in cPanel.

              Stick with the books and go through them again if you don't understand something. You should start to pick it up. You just need some time and patience to get things moving.

              David
              -----
              Do you fear the obsolescence of the metanarrative apparatus of legitimation?

              Comment

              • Buddha
                Senior Member
                • Mar 2004
                • 825

                #8
                I honestly dont know either perl or php, but which ones better?
                I think this depends on how your going to use them.

                I think PHP wins out in when it comes to web applications. Perl and PHP maybe able to do the same thing but how they do them is completely different. PHP extenses are compiled machine code while Perl extension (modules) are mostly scripts that need to be compiled at runtime. Big difference.

                However, Perl still has many uses besides web applications. I hope you try to learn both.

                Whole mess of visual tutorial (one on creating Databases too) for cpanel here:
                "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

                Comment

                • KyleC
                  Senior Member
                  • Mar 2004
                  • 291

                  #9
                  ok allow me to go somewhat off topic...

                  DON'T click on this link if you are offended by bad language or cheerleaders.

                  OK back to the good discussion...
                  Last edited by KyleC; 06-22-2004, 07:34 PM.
                  -Kyle

                  Comment

                  • Jonathan
                    Senior Member
                    • Mar 2004
                    • 1229

                    #10
                    Originally posted by KyleC
                    ok allow me to go somewhat off topic...

                    DON'T click on this link if you are offended by bad language or cheerleaders.

                    OK back to the good discussion...
                    O Kyle such awesome-ness!!
                    "How can someone be so distracted yet so focused?"
                    - C

                    Comment

                    • Buddha
                      Senior Member
                      • Mar 2004
                      • 825

                      #11
                      LOL

                      Thanks for the new wallpaper for my desk. Nobody told me there would be cheerleaders!!!
                      "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

                      Comment

                      • KyleC
                        Senior Member
                        • Mar 2004
                        • 291

                        #12
                        Originally posted by Buddha
                        LOL

                        Thanks for the new wallpaper for my desk. Nobody told me there would be cheerleaders!!!
                        Here is a bigger one for your desktop
                        -Kyle

                        Comment

                        • Lucas
                          Junior Member
                          • Mar 2004
                          • 21

                          #13
                          PHP. Speed, Stable, Less CPU Overload, etc.
                          Sweet girls :P

                          Comment

                          • Frank Hagan
                            Senior Member
                            • Mar 2004
                            • 724

                            #14
                            Originally posted by KyleC
                            ok allow me to go somewhat off topic...

                            DON'T click on this link if you are offended by bad language or cheerleaders.

                            OK back to the good discussion...
                            Or if you are at a company where they scan the URLs for "keywords" like that "f-word" in the URL!

                            I'd get the big stop sign of death and a call from Human Resources right away with that one.

                            Comment

                            • -Oz-
                              Senior Member
                              • Mar 2004
                              • 545

                              #15
                              That is a great picture.
                              Dan Blomberg

                              Comment

                              Working...