This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

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
 
Marshal
Posts: 67293
170
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.
 
You can thank my dental hygienist for my untimely aliveness. So tiny:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!