Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2006
    Thanked 0 Times in 0 Posts

    Question General Question - PHP vs. JS

    I've noticed that often it is easier to use PHP when writing scripts, because for me, it is often easier to understand.

    Is there any downfall to using strictly PHP and not JS. Is there strong points to each, (other than the external script and client side abilities of JS) or is it ok to bypass JS completely and just use PHP?

    *to clarify, I am not the best with either JS or PHP, so this may be a stupid question

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    In a place far, far away...
    Thanked 1,043 Times in 1,019 Posts
    It really depends on what you are trying to do. There are some things JS can do that PHP can't and vice versa. Just remember Js can be disabled, php can't so if you can do something server side then do it.


    Posting Permissions

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