Fucking around with PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pr0
    rockin tha trailerpark
    • May 2001
    • 23088

    #1

    Fucking around with PHP

    Looking for a site that has some good resources on learning to program with php. Like socket programming etc.

    Thinking about making a custom search engine submission program to run off my server.

    But first i gotta learn how to use php
    __________
    Loadedca$h - get sum! - Revengebucks - mmm rebills! - webair (gotz sErVrz)
  • Cogitator
    Confirmed User
    • Feb 2002
    • 672

    #2
    Look no further. Go to www.php.net They have tutorials and everything.
    - this space intentionally left blank -

    Comment

    • hyper
      Confirmed User
      • Mar 2002
      • 5294

      #3
      www.zend.com

      Comment

      • ServerGenius
        Confirmed User
        • Feb 2002
        • 9377

        #4
        www.phpbuilder.com good tutorials, friendly community!

        DynaMite
        | http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |

        Comment

        • eRock
          Confirmed User
          • Apr 2001
          • 3112

          #5
          Originally posted by pr0
          But first i gotta learn how to use php
          I'm right there with ya. On my list....
          Swiftwill Hosting

          Comment

          • Sly_RJ
            Live Hard - Die Hard
            • Feb 2002
            • 17042

            #6
            www.devshed.com
            PHAT SERVERS - Quality dedicated hosting at a quality price!
            sly AT phatservers DOT com - 147479144

            Comment

            • mike503
              Confirmed User
              • May 2002
              • 2243

              #7
              you might not need to use socket programming. php has nice built in support for simple http requests.

              you can also look at cURL (php.net/curl) - very very good stuff there. don't have to program your own socket connection stuff either (which isn't hard itself in PHP also.. heh)
              php/mysql guru. hosting, coding, all that jazz.

              Comment

              • foe
                Confirmed User
                • May 2002
                • 5246

                #8
                Online resources are fun, but in the end just get a good php book, Its a lot easier to learn the language that way.

                Comment

                • mike503
                  Confirmed User
                  • May 2002
                  • 2243

                  #9
                  Originally posted by foe
                  Online resources are fun, but in the end just get a good php book, Its a lot easier to learn the language that way.
                  i'd say it's the opposite. online resources means you can cut and paste the code.. and is updated in real-time.. new functions are being explored all the time.. books are static, once they're published, they do not change.. and time from writing to market is a while, by that time a whole new version of PHP could be out.

                  it just depends how you learn. if you learn by sitting in a corner and reading about it, then maybe books do help you. however, if you learn by doing it (like me), online resources are faster and more accessable, not to mention free.
                  php/mysql guru. hosting, coding, all that jazz.

                  Comment

                  • foe
                    Confirmed User
                    • May 2002
                    • 5246

                    #10
                    Originally posted by mike503


                    i'd say it's the opposite. online resources means you can cut and paste the code.. and is updated in real-time.. new functions are being explored all the time.. books are static, once they're published, they do not change.. and time from writing to market is a while, by that time a whole new version of PHP could be out.

                    it just depends how you learn. if you learn by sitting in a corner and reading about it, then maybe books do help you. however, if you learn by doing it (like me), online resources are faster and more accessable, not to mention free.
                    Yes but if you get a book you will not skip important parts like arrays classes etc, you get a good overview of the language and when you need specific info then you shoudl turn to online scripts.

                    Comment

                    • mike503
                      Confirmed User
                      • May 2002
                      • 2243

                      #11
                      Originally posted by foe


                      Yes but if you get a book you will not skip important parts like arrays classes etc, you get a good overview of the language and when you need specific info then you shoudl turn to online scripts.
                      php.net has overviews of all of that also.. so do all the other sites listed. anything that's in a PHP book is on a website. not everything on websites are in PHP books. websites also have updated information about bugs in functions which books do not.

                      i've looked at books before which even show code samples, when i try them, they fail miserably. especially in regards to some of the recent PHP function additions which are changing names often..
                      php/mysql guru. hosting, coding, all that jazz.

                      Comment

                      • foe
                        Confirmed User
                        • May 2002
                        • 5246

                        #12
                        Originally posted by mike503


                        php.net has overviews of all of that also.. so do all the other sites listed. anything that's in a PHP book is on a website. not everything on websites are in PHP books. websites also have updated information about bugs in functions which books do not.

                        i've looked at books before which even show code samples, when i try them, they fail miserably. especially in regards to some of the recent PHP function additions which are changing names often..
                        I found that php.net is great to learn some advanced functions ... especially recent ones, but if someone is starting out I think a book will be easier

                        Comment

                        • AcidMax
                          Confirmed User
                          • May 2002
                          • 1827

                          #13
                          PHP Builder (http://www.phpbuilder.com)
                          WebMonkey (http://hotwired.lycos.com/webmonkey/programming/php/)

                          and of course PHP.net

                          I am always up for helping people out so if you have some questions feel free to contact me on ICQ: 70930467

                          I would say the most important things in PHP are classes, db abstraction and regular expressions. With these 3 things you can accomplish pretty much anything.


                          Almost forgot check out (http://www.e-gineer.com/) thats a pretty good site too.

                          -AJ
                          Latest MMA news. http://www.mmawrapup.com

                          Comment

                          • pr0
                            rockin tha trailerpark
                            • May 2001
                            • 23088

                            #14
                            wow, abunch of really great information, thanks guys!

                            you can always count on the programmers for resourcefullness
                            __________
                            Loadedca$h - get sum! - Revengebucks - mmm rebills! - webair (gotz sErVrz)

                            Comment

                            • AcidMax
                              Confirmed User
                              • May 2002
                              • 1827

                              #15
                              pr0 hit me up on ICQ.

                              -AJ
                              Latest MMA news. http://www.mmawrapup.com

                              Comment

                              • hyper
                                Confirmed User
                                • Mar 2002
                                • 5294

                                #16
                                yeah.. you need books.

                                Comment

                                • Script Dude
                                  Registered User
                                  • Jun 2002
                                  • 86

                                  #17
                                  I've been working on a server side "promotion assistant," but I decided that I would stop short of auto submitting for a variety of reasons.

                                  One being that I've been hired to write scripts that block auto submissions, and I think I would feel a bit hypocritical writing an auto submitter.

                                  (Is that the ethical equivalent to selling arms to both sides in a war?)

                                  Anyway, i think you will find something like this useful...

                                  Http Navigator

                                  Good luck.

                                  Comment

                                  • mike503
                                    Confirmed User
                                    • May 2002
                                    • 2243

                                    #18
                                    that's why people shouldn't use auto submitters, they should use my site. everyone benefits. no one gets annoyed by automatic submission shit
                                    php/mysql guru. hosting, coding, all that jazz.

                                    Comment

                                    • foe
                                      Confirmed User
                                      • May 2002
                                      • 5246

                                      #19
                                      But what about reciprocle linking

                                      Comment

                                      • Matt 26z
                                        So Fucking Banned
                                        • Apr 2002
                                        • 18481

                                        #20
                                        In my opinion, anyone wanting to learn PHP needs only the following 4 things...

                                        1. The book PHP fast & easy web development. By Julie C. Meloni out of Prima Publishing. This book will start you from the beginning, and they make it VERY easy to understand.

                                        2. After you know all the basics from the above book then dig into the book Professional PHP Programming from Wronx Press. Lot's of stuff here, so you may want to teach yourself only what you need to know for whatever it is you are doing. Go with the smaller book I mentioned above first though. That is for extreme PHP newbies, and this one I don't think is.

                                        3. Visit PHPBuilder.com's boards with any questions you have.

                                        4. The program PHP Triad (it's free). It'll do a full install of Apache and MySQL in Windows. Support for PHP of course, and CGI.

                                        Comment

                                        • foe
                                          Confirmed User
                                          • May 2002
                                          • 5246

                                          #21
                                          Originally posted by Matt 26z
                                          In my opinion, anyone wanting to learn PHP needs only the following 4 things...

                                          1. The book PHP fast & easy web development. By Julie C. Meloni out of Prima Publishing. This book will start you from the beginning, and they make it VERY easy to understand.

                                          2. After you know all the basics from the above book then dig into the book Professional PHP Programming from Wronx Press. Lot's of stuff here, so you may want to teach yourself only what you need to know for whatever it is you are doing. Go with the smaller book I mentioned above first though. That is for extreme PHP newbies, and this one I don't think is.

                                          3. Visit PHPBuilder.com's boards with any questions you have.

                                          4. The program PHP Triad (it's free). It'll do a full install of Apache and MySQL in Windows. Support for PHP of course, and CGI.
                                          Just a small warning use PHP triad only to develop at home, dont host commercially from it, it has lots of security problems.

                                          Comment

                                          • ServerGenius
                                            Confirmed User
                                            • Feb 2002
                                            • 9377

                                            #22
                                            Ok if you want to learn it really fast...read the functions chapter 3 times.....and read chapter 7 of Mysql 3 times...that's basically all
                                            you need to get started...then just start experimenting...

                                            get some simple scripts and start modifying...trust me it ain't
                                            rocket science......before you know you get the hang of it..

                                            offcourse it will take some time getting good at it.....the hardest
                                            part is to make a good plan....a design for the stuff you build.

                                            one can build 1 script in 100 different ways....in order to keep it
                                            simple, efficient and fast...it needs a good blueprint...that's what
                                            seperates the boys from the man....

                                            DynaMite
                                            | http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |

                                            Comment

                                            • pr0
                                              rockin tha trailerpark
                                              • May 2001
                                              • 23088

                                              #23
                                              Well i made my first script.

                                              www.candidlinks.com/pro.php

                                              it just gives you your ip & browser type

                                              And its just based on simple shit i found at the php homepage...but oh well its a start
                                              __________
                                              Loadedca$h - get sum! - Revengebucks - mmm rebills! - webair (gotz sErVrz)

                                              Comment

                                              • Martin
                                                "Assassins"
                                                • Dec 2001
                                                • 17274

                                                #24
                                                I bet you guys don't get laid much.. Facking geeks

                                                Comment

                                                • pr0
                                                  rockin tha trailerpark
                                                  • May 2001
                                                  • 23088

                                                  #25
                                                  Originally posted by Martin
                                                  I bet you guys don't get laid much.. Facking geeks
                                                  don't tempt me martin

                                                  i fucked every girl in canada already, & i've got the std's to prove it
                                                  __________
                                                  Loadedca$h - get sum! - Revengebucks - mmm rebills! - webair (gotz sErVrz)

                                                  Comment

                                                  • mike503
                                                    Confirmed User
                                                    • May 2002
                                                    • 2243

                                                    #26
                                                    pro be sure to use the $_POST $_GET $_COOKIE $_SERVER $_FILES $GLOBALS (yes, no _) global arrays. it's a good coding syntax to get in the habit of using, + it's more secure to use. also, newer distros of PHP have register_globals off by default, so this will effectively work on all 4.1.x+ systems without any issues (did i mention it was the better way to code and more secure? yeah...)
                                                    php/mysql guru. hosting, coding, all that jazz.

                                                    Comment

                                                    • pr0
                                                      rockin tha trailerpark
                                                      • May 2001
                                                      • 23088

                                                      #27
                                                      Originally posted by mike503
                                                      pro be sure to use the $_POST $_GET $_COOKIE $_SERVER $_FILES $GLOBALS (yes, no _) global arrays. it's a good coding syntax to get in the habit of using, + it's more secure to use. also, newer distros of PHP have register_globals off by default, so this will effectively work on all 4.1.x+ systems without any issues (did i mention it was the better way to code and more secure? yeah...)
                                                      dude im totally lost, did i do something insecure with the script i just put up?
                                                      __________
                                                      Loadedca$h - get sum! - Revengebucks - mmm rebills! - webair (gotz sErVrz)

                                                      Comment

                                                      • foe
                                                        Confirmed User
                                                        • May 2002
                                                        • 5246

                                                        #28
                                                        Originally posted by pr0


                                                        dude im totally lost, did i do something insecure with the script i just put up?
                                                        nope, but post the code if you want some pointers

                                                        Comment

                                                        • Martin
                                                          "Assassins"
                                                          • Dec 2001
                                                          • 17274

                                                          #29
                                                          Originally posted by pr0


                                                          don't tempt me martin

                                                          i fucked every girl in canada already, & i've got the std's to prove it
                                                          Dam you too bro.. Shiiit..

                                                          Comment

                                                          • foe
                                                            Confirmed User
                                                            • May 2002
                                                            • 5246

                                                            #30
                                                            btw pro message me if you need help. I have taught several friends php and still give advice to many

                                                            Comment

                                                            • pr0
                                                              rockin tha trailerpark
                                                              • May 2001
                                                              • 23088

                                                              #31
                                                              Originally posted by foe
                                                              btw pro message me if you need help. I have taught several friends php and still give advice to many
                                                              See now this is what i like about the people at this board, & programmers in general. Always so helpfull & willing to give you a hand.

                                                              Awsome
                                                              __________
                                                              Loadedca$h - get sum! - Revengebucks - mmm rebills! - webair (gotz sErVrz)

                                                              Comment

                                                              • hyper
                                                                Confirmed User
                                                                • Mar 2002
                                                                • 5294

                                                                #32
                                                                Originally posted by DynaSpain
                                                                that's what
                                                                seperates the boys from the man....

                                                                DynaMite
                                                                i thought a prybar did

                                                                Comment

                                                                • hyper
                                                                  Confirmed User
                                                                  • Mar 2002
                                                                  • 5294

                                                                  #33
                                                                  Originally posted by foe
                                                                  btw pro message me if you need help. I have taught several friends php and still give advice to many
                                                                  how do i call the last 5 entries from a database based on field?

                                                                  Comment

                                                                  • foe
                                                                    Confirmed User
                                                                    • May 2002
                                                                    • 5246

                                                                    #34
                                                                    Originally posted by hyper


                                                                    how do i call the last 5 entries from a database based on field?
                                                                    do your records have an id or a datestamp if they do

                                                                    that should be basically it.
                                                                    PHP Code:
                                                                    select requiredfields from tablename order by idfield desc limit 5 
                                                                    

                                                                    Comment

                                                                    • mike503
                                                                      Confirmed User
                                                                      • May 2002
                                                                      • 2243

                                                                      #35
                                                                      Originally posted by pr0


                                                                      dude im totally lost, did i do something insecure with the script i just put up?
                                                                      no, but when you get into forms with user interaction and other things, someone could put a variable in the query string (i.e. using the "GET" method) when you are expecting a POST variable. POST is usually viewed as more secure since people can't see the data being sent to the server.

                                                                      people could easily override a POST var with GET, or could override a session variable with a GET request. depending on your variables_order they could mess with your shit

                                                                      if you have any other q's, hit me up on icq. just another resource for you chat with.
                                                                      php/mysql guru. hosting, coding, all that jazz.

                                                                      Comment

                                                                      Working...