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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2006
    Posts
    117
    Thanks
    2
    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
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    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.
    ||||If you are getting paid to do a job, don't ask for help on 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
    •