• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

javascript vs. php

 
Ranch Hand
Posts: 110
Android Redhat Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
I want to know which is the best java script or php.sme tell me that php is better then Js ans some says opposite.
So I was just hoping that you guys could give me reasons why PHP is better than JS or Js is better then php. Then later I'll have a list of reasons.

some one tell me that you can't really compare them. Normally, you use them both. Javascript for the nice dynamic client side stuff (like hiding a part of the page) and PHP to generate the page. And then there's ajax, which makes both work really great together.

some one tell me that
PHP have mail function
js, dont have it.
with php you can have the remote and local time
with js you can have user time...
with php you can have remote and host address
with js ... i dont know !!
with php the source is not lookable in the source code
with js the source can be see in the source code of the page.

so please post your openion here but with reson which wil help me.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is like comparing apples and oranges. Both are fruit, but they are totally different.

Eric
 
Sheriff
Posts: 67399
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which is better, a fork or a knife?

The question doesn't make sense because both are tools that work together when we eat. Same with your question: neither can be deemed "better" than the other as they are both tools that do very different things that work together, not in competition with each other.
 
Once upon a time there were three bears. And they were visted by a golden haired tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic