1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Im trying to learn PHP

Discussion in 'PHP' started by nut legend, Jul 5, 2008.

  1. #1
    Hey,

    I would like to learn PHP, I know HTML and a bit about Java but I am very interested in PHP. I have a few questions though:

    1. Whats the best book to learn from (preferably one I could buy from amazon and one which isn't to expensive)
    2. How long would it take to make a website like Tribalwars (for me if I spent about 5 hours per day working on it?)

    Thanks

    nut legend
     
    nut legend, Jul 5, 2008 IP
  2. nadavraj

    nadavraj Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hi,

    i learned php from the internet, i think you can find what ever you need there,
    and you can also download scripts and learn by changing/looking/playing with the code.



    good luck
     
    nadavraj, Jul 5, 2008 IP
  3. Greg Carnegie

    Greg Carnegie Peon

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You don't need to buy a book, i also learned from the internet there is a lot of good quality resources out there including this forum.

    As for site like Tribalwars, don't want to discourage you but this will take few months for good programmer or a team of web developers including web designer, programmer and so on, if you are getting started it will probably take even longer.

    That's not to say it cannot be done, it can, but when you start learning something new what you can expect is slow incremental progress, you won't learn it overnight, but it is a skill like anyother skill and anyone can learn it.
     
    Greg Carnegie, Jul 5, 2008 IP
  4. nut legend

    nut legend Well-Known Member

    Messages:
    1,128
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    150
    #4
    Out of interest could you give me a link for some of the resources that you used? Also could you tell me where I can learn PHP from this forum, I was thinking of buying Sams teach yourself php in 10 minutes, do you think I should?

    Thanks

    nut legend
     
    nut legend, Jul 5, 2008 IP
  5. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #5
    you can get that book in pdf form for free

    Just visit the last link in my signature

    Search for "Sams Teach Yourself Php"

    (without quotes)

    Regards

    Alex
     
    kmap, Jul 5, 2008 IP
  6. nut legend

    nut legend Well-Known Member

    Messages:
    1,128
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    150
    #6
    I have the ebook but I don't like ebooks that much....
     
    nut legend, Jul 5, 2008 IP
  7. nut legend

    nut legend Well-Known Member

    Messages:
    1,128
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    150
    #7
    Whats the best book/ebook to get you from complete novice to creating an online game, also if I need any languages apart html could you please specify what they are?

    Thanks

    nut legend
     
    nut legend, Jul 5, 2008 IP
  8. Greg Carnegie

    Greg Carnegie Peon

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Hmmm it will be though, because all of my resources were in Polish language, so they would be probably no use to you, except for php.net

    As for forum, open it daily and browse thru threads if you see a thread where you can help someone, or need to write some code first to help someone, do it - resolving problems - that's what this is all about.

    I do not know about this book so i can't tell.
     
    Greg Carnegie, Jul 5, 2008 IP
  9. nekowai

    nekowai Well-Known Member

    Messages:
    256
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    130
    #9
    Im trying to unlearn php its something completely useless in terms of making money...
     
    nekowai, Jul 5, 2008 IP
  10. Alonski

    Alonski Active Member

    Messages:
    1,572
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    90
    #10
    Why... Make scripts and sell them =)
     
    Alonski, Jul 5, 2008 IP
  11. projectWORD

    projectWORD Active Member

    Messages:
    287
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    63
    #11
    Learn from using it. I know it sounds a little hard when you don't know how. Set yourself little tasks, then see if you can get the correct output. The classic "hello world" print is the very basic start
     
    projectWORD, Jul 5, 2008 IP
  12. ankit_gupta

    ankit_gupta Peon

    Messages:
    666
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #12
    try learning from w3schools, i m learning it from there too

    i found it superb and i use php.net for references:)
     
    ankit_gupta, Jul 5, 2008 IP
  13. jprice259

    jprice259 Peon

    Messages:
    100
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #13
    php.net's manual for all the built in functions is a must. Like any IT says "RTFM" for "read the f***ing manual" :D

    Also I have some tutorials on my site. I would start with writing simple variable's and using operators. Also start using simple control structures such as the if else conditions. Read about the isset function since I use it a lot and it helps when getting variable values from a string. i.e. you have $var = value... you want to see if the variable has a value.

    A simple boolean condition.


    $var = 'there is a value here';
    if(isset($var)) // your condition we see if the variable is assigned a value
    {
    output; // if it's "true" or value set.
    }
    else
    {
    output; // if it's "false" or no value.
    }

    The above is more practical instead of writing:
    $var=$_REQUEST['var'];

    if($var=='NULL' || $var==' ')
    {
    output;
    }
    else
    {
    output;
    }

    Learn about the operators and logical operators first. such as the single = means "is set to" and double == means equal to and != means not equal to... and so on.
     
    jprice259, Jul 5, 2008 IP
  14. nekowai

    nekowai Well-Known Member

    Messages:
    256
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    130
    #14
    I tried to sell scripts for 6 years...i sold 0 :)
    In today's internet its impossible to sell scripts since people may find anything for free and with better development/addons/plugins
     
    nekowai, Jul 5, 2008 IP
  15. X.Homer.X

    X.Homer.X Peon

    Messages:
    290
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #15
    maybe you were making the wrong scripts =] haha

    try to make something never made before. or a DRASTIC improvement on it.
     
    X.Homer.X, Jul 5, 2008 IP
  16. itnashvilleCOM

    itnashvilleCOM Banned

    Messages:
    176
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #16
    I recommend for a solid base education to start with a book like php for dummies. It is thorough and easy to understand. Then after reading it, put it into practice! Then work your way up through more challenging tutorials once you feel comfy with the basics.
     
    itnashvilleCOM, Jul 6, 2008 IP
  17. nut legend

    nut legend Well-Known Member

    Messages:
    1,128
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    150
    #17
    Thanks for all your replies guys, I will buy the learn php in 10 minutes book, afterwards I will make some simple scripts. I will make a new thread and post them (or I may just post them here)

    Thanks

    nut legend
     
    nut legend, Jul 6, 2008 IP
  18. nekowai

    nekowai Well-Known Member

    Messages:
    256
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    130
    #18
    Thats like making time travel devices :)
     
    nekowai, Jul 6, 2008 IP
  19. Alonski

    Alonski Active Member

    Messages:
    1,572
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    90
    #19
    Will... I see you haven't been on DP long. Once you have read as many threads as I have you might notice people selling scripts for lots of money. I have a friend who made a few hundreds selling a simple script on the net some on DP. It all depends how good your script is and if its needed. Also you have to be a good salesperson.
     
    Alonski, Jul 6, 2008 IP
  20. nekowai

    nekowai Well-Known Member

    Messages:
    256
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    130
    #20
    Dude i never made a cent online....you're talking to the wrong person...
     
    nekowai, Jul 6, 2008 IP