Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Jan 2010
    Posts
    76
    Thanks
    3
    Thanked 0 Times in 0 Posts

    php or javascript

    i wanna start moving on to something new and different. im deciding between javascript or php. i dont really know which one to start with though. is javascript easier?

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,472
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    Javascript is processed locally, on your PC ... using your browser.
    So, it's easy to learn because you can code and test offline.
    Javascript is a "client-side" scripting language. You can't affect any files,
    or process any files online (on your website).

    PHP is a server-side scripting language. That means you need to upload
    your script to your webhost and test online (unless you have your own server).
    That makes it a tiny bit harder to experiment, but PHP is totally different than
    Javascripting. With PHP, you have file and database control over your website
    files. That of course is what makes it so powerful.

    ANY programming language you learn (PHP, Perl, C++, Visual Basic, BASIC, Javascripting),
    is beneficial to your future. You will learn the structure and flow of a program, how
    variables and arrays work, how functions work, etc. That is the same across all
    languages.

    Use Google for free information, tutorials, and examples.

  • #3
    New Coder
    Join Date
    Jan 2010
    Posts
    76
    Thanks
    3
    Thanked 0 Times in 0 Posts
    well i plan on learning them both, but im just undecided which to do 1st.
    javascript seems easier, but php seems like it can do more things. i dont know lol. i have xampp installed so i can test php files on my computer without having to upload them to a host server.

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,472
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    Learn PHP then .... Javascripting is easy to learn after you get PHP.

  • #5
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    PHP for server side scripting and Javascript for client side scripting, (usability enhancements).

  • #6
    bdl
    bdl is offline
    Regular Coder
    Join Date
    Apr 2007
    Location
    Camarillo, CA US
    Posts
    590
    Thanks
    4
    Thanked 83 Times in 82 Posts
    What programming experience do you currently have? Languages you're adept with? What do you want to "do"? I might not recommend PHP at all, but maybe Python or Ruby.

    It's tough nowadays to work on any web project without running across JavaScript in some form. It's going to remain a staple in the web dev's toolkit.

    Not to come off like a Crockford fanboy, but I highly recommend anything by Doug Crockford; there's alot of really good lectures on JavaScript, Ajax and the web he's done over the years.

    YUIblog.com : Crockford (new lectures)
    YUI theatre : "crockford" search results
    JavaScript : The Good Parts
    crockford.com : JavaScript

  • #7
    New to the CF scene
    Join Date
    Jan 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    JavaScript is mainly used as client side scripting language, while PHP is a server side technology. PHP doesn't have tools to make it work client side. so you need to combine JavaScript and PHP scripts to develop powerful web-applications.
    So, learn PHP and Java Script for developing web applications.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •