JavaScript or PHP?

Discussion in 'Programming' started by MaryMach, Jul 21, 2012.

  1. KLIQ

    KLIQ Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #21
    I think you just try to learn first PHP and then JavaScript. Every webmaster know php that it's powerful tool to creating websites so they learning it first. - its was my decision in past.
     
    KLIQ, Aug 4, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #22
    Aside from the lack of uniformity from page to page (and writing the site in PHP helps with that, since you can just include the top header and left side, from the same files, on every page), the site doesn't look bad from the user's viewpoint.
     
    Rukbat, Aug 11, 2012 IP
  3. s103r

    s103r Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #23
    Both of them obviously, PHP is really comfortable for server side.
     
    s103r, Aug 11, 2012 IP
  4. blackblist

    blackblist Greenhorn

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #24
    In my point >>
    PHP: easy to learn
    Javascript: easy to learn, easy to execute

    Now, I should choose javascript for my server side and client side scripting :D
     
    blackblist, Aug 12, 2012 IP
  5. lolpasslol

    lolpasslol Peon

    Messages:
    860
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #25
    You should learn both java-script and php.
    For dynamic site design php is essential with MySQL database and java-script is for browser based programming and to make a professional site.
     
    lolpasslol, Aug 12, 2012 IP
  6. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #26
    One little problem - Javascript runs in the browser, not on the server. There's no way to get your Javascript code to run on the server. You have to use server-side code if you want code that runs on the server, and PHP is server-side code.

    IOW, if you need code running on the server and in the client, you have to use both. You have no choice.
     
    Rukbat, Aug 13, 2012 IP
  7. dynamic1234

    dynamic1234 Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #27
    Well both are good at their on level, If you talk about javascript it can be apply with even php,asp,etc. About Php it is a severside programming language and a open source free to use as well as understand.
     
    dynamic1234, Aug 14, 2012 IP
  8. steveguava88

    steveguava88 Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #28
    PHP is use for crate dynamic websites. PHP features are best to use. Java Script is use for give the shape of website. Widely used java script today websites.
     
    steveguava88, Aug 16, 2012 IP
  9. ashleyjohn2347

    ashleyjohn2347 Peon

    Messages:
    269
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #29
    PHP is a server side language and JAVA script is a client side thing. I think you should have command in both.
     
    ashleyjohn2347, Aug 16, 2012 IP
  10. jenyfarlopej

    jenyfarlopej Member

    Messages:
    1,051
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    43
    #30
    As your webpage is made by html I think php will be best for you.
     
    jenyfarlopej, Aug 17, 2012 IP
  11. Candan

    Candan Peon

    Messages:
    7
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #31
    PHP is server sided, javascript is client sided.
     
    Candan, Aug 20, 2012 IP