php is better i am using this, and here is some advantages and disavantages of php which is following, read this you will automatically come to know which is better
- PHP is accessible
- ** It's available for free
- It's available with documentation in many languages
- There are many support groups, forums, and teams supporting PHP
- There is a wealth of online information regarding PHP
- It's quick to develop in PHP
- ** A basic PHP script can be created without a firm understanding of programming principals, compilation, and other currently important programming concepts
- PHP is loosely typed, which makes basic scripts much faster to develop with less attention to design
- Programmers of Java, PERL, BASIC, and other popular languages can find many parallels to ease transition to PHP
- PHP is flexible. Use OOP or not. Use naming convention(s) or not
- It runs on many different operating systems
- It can be optimized, even "compiled" for performance closer to that of more established compiled languages
Disadvantages:
- Out of the box, PHP tends to execute more slowly than assembly, C, and other compiled languages
- PHP is loosely typed. For developers of all skill levels, this allows room for unexpected behavior due to programmer error that many other languages might not permit. [Of course, few if any languages can protect from developer error!]
- There are many ways to do one thing, and many cases where a function has ambiguous handling due to legacy support or PHP development history.
Advantages:
- Open Source, readily available (you can be using it today) and dual-
licensed - if you are doing non-profit work or not licensing, there is no cost.
- Very Easy to understand Syntax, some really cool features (arrays
are something else!)
- Interfaces very easily with Apache/MySQL
- Server side (no need to futz with client installs - only with
rendering issues if you use CSS).
- Lots of good source code out there to use and/or learn from, as well
as many useful libraries for working with PDFs, graphics, etc.
- Lots of good books and on-line help (php.net is great)
- Platform agnostic, can run on Windows Linux or Mac servers. Also
very scalable.
- Lots of hosting services have it ready to use, no special
configuration (except if you have special security needs)
- Pretty easy to access other web-based tools through PHP (i.e. google
maps, etc.)
Disadvantages
- If you want to do more than just HTML/CSS pages on the client you
need to also add javascript, java or other client-side language in
your output (goes for Perl and some other languages).
- The way browsers work make handling data and coding programs more
interesting (technically each page is a new run on the system, so you
have to manage your variables coming in and going out and between
pages. Not hard, just different.)
- Web programming (regardless of language) is open to security flaws
due to unimplemented or unknown vulnerabilities, takes a bit more
caution.