PHP and Javascript

Discussion in 'Programming' started by hummaad, May 20, 2010.

  1. #1
    Hi,

    I want to make dynamic websites and for that I am learning PHP/MySQL. But some one told me that I should learn Javascript as well.

    Is it really important, also, if I learn simple Java, whats the difference.

    Thanks
     
    hummaad, May 20, 2010 IP
  2. Fervid

    Fervid Well-Known Member

    Messages:
    161
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Java and Javascript aren't the same. If you're wanting to create dynamic websites then you don't need Java at all. Learn the basics of Javascript and once you have a grasp on the fundamentals, learn to use a Javascript framework like jQuery or Mootools.

    http://jquery.com/
    http://mootools.net/
     
    Fervid, May 20, 2010 IP
  3. hummaad

    hummaad Peon

    Messages:
    319
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ah,

    thanks a lot for your help.

    Well tell me is it really important to learn java if I am learning php?
     
    hummaad, May 20, 2010 IP
  4. Fervid

    Fervid Well-Known Member

    Messages:
    161
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    120
    #4
    Nope, I wouldn't bother with java at all if you're wanting to do web development.
     
    Fervid, May 20, 2010 IP
  5. newcity

    newcity Peon

    Messages:
    1,015
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Just go on with mastering PHP. Javascript , HTML , CSS are essential for any website development.
     
    newcity, May 23, 2010 IP
  6. digital29

    digital29 Peon

    Messages:
    462
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Javascript is for little, fancy things to improve accessibility...and small animations if is used together with JQuery.
    Javascript is more about web design
     
    digital29, May 25, 2010 IP
  7. hummaad

    hummaad Peon

    Messages:
    319
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    well I have heard that with PHP, we have to do javascript.

    as PHP is server site script, Javascript is client side script, and for the communication of forms and stuff with the browser, it is important or else PHP is useless!!

    Is that correct?
     
    hummaad, May 25, 2010 IP
  8. killaklown

    killaklown Well-Known Member

    Messages:
    2,666
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    165
    #8
    I think your being confused with javascript and java.. they are COMPLETELY different, they arnt even developed by the same company... comparing javascript and java makes just as much sense as comparing c++ and javascript.

    No thats not correct. Anything you do with javascript you can do with php (and no, you can not do everything you do in php using javascript), the advantage of javascript is it is client side so you do not need to get a response from the server.


    Im not really sure who is telling you all this, but best advice is to ignore them.
     
    killaklown, May 25, 2010 IP
  9. hummaad

    hummaad Peon

    Messages:
    319
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thanks a alot killaklown,

    You put away all my confusions.

    Well now as I know its not really that important to learn javascript,

    What benefits will I get If if master javascript sided with php/mysql?

    Regards
     
    hummaad, May 25, 2010 IP
  10. Lost&found

    Lost&found Guest

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    it gives you greater flexibility to make decisions on the fly, nothing more. Some things are better done with javascript, some are not. Learning both just gives you the knowledge to make a better decision as to how to achieve your goal in regards to your overall design. Also if you want to include some nice Jquery you would need atleast some basic knowledge of javascript. First learn php, then go on to javascript once php is natural to you.
     
    Lost&found, May 27, 2010 IP
  11. phpwnes

    phpwnes Peon

    Messages:
    509
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #11
    i am in the same shoes as you are and to me pho is great for the server side coding and working with mysql database
     
    phpwnes, May 28, 2010 IP