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.

PHP or Javascript?

Discussion in 'Programming' started by sumanc, Jun 3, 2008.

  1. #1
    I am a beginner with web programming. I want to know whether I should start by learning PHP or Javascript? What are the respective benefits and drawbacks and difficulties? I only know that PHP is a server-side scripting language and Javascript is client-side.

    Is it enough to know any one of them or both are required?

    Any guidance will be much appreciated.
     
    sumanc, Jun 3, 2008 IP
  2. missenlinx

    missenlinx Peon

    Messages:
    97
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Both go hand in hand. I suggest learning in this order

    html > css > php > javascript

    as html, css & php are required to make a website where javascript is just an extra.
     
    missenlinx, Jun 3, 2008 IP
  3. KC TAN

    KC TAN Well-Known Member

    Messages:
    4,792
    Likes Received:
    353
    Best Answers:
    0
    Trophy Points:
    155
    #3
    I would suggest you to pick up both eventually. You may want to start off with PHP and do stuff like validation on the server side. Then pick up JavaScript along with Ajax to make your site more interactive :)
     
    KC TAN, Jun 4, 2008 IP
  4. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #4
    They are independent languages Javascript is client side , php is server side you need to learn both .
     
    it career, Jun 4, 2008 IP
  5. sumanc

    sumanc Peon

    Messages:
    59
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks everybody for your helpful replies.

    What would be the best place in the web to start? I am consulting w3schools.com right now. But the total amount of materials seems limited there. Can you suggest some other site with FREE, but comprehensive tutorials, please? I have seen the official PHP documentation, but I am looking for a more application oriented approach.
     
    sumanc, Jun 4, 2008 IP