Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/articles/php-tutorials/)
-   -   Why use PHP for server-side scripting? (http://www.go4expert.com/articles/php-server-scripting-t4385/)

Sanskruti 21May2007 16:04

Why use PHP for server-side scripting?
A trend with a lot of new Web Designers is to blindly go for ASP or JSP for creating dynamic and interactive websites. Why use PHP for server-side scripting? This question comes in mind of a lot of Web Designers, especially in mind of designers/programmers who are only exposed to much hyped server side scripting languages such as ASP or JSP.

PHP is indeed a great choice for dynamic websites and a lot of popular websites do use PHP as a scripting language. A lot of designers shy away from a good web hosting providers such as Yahoo as it does not support JSP but supports PHP! In this discussion I want to bring into light why use PHP for server-side scripting when there is ASP and JSP around.

What is PHP?

PHP is a server-side scripting language, such as ASP and JSP. PHP is an open source and free to download and use. It is a powerful scripting language for creating dynamic and interactive websites. PHP files may contain text, HTML tags and scripts. PHP files have a file extension of ".php", ".php3", or ".phtml".

Why PHP?

PHP runs on different platforms such as Windows, Linux, Unix, etc. PHP is easy and fast to learn and runs efficiently on the server side. C programmers can easily master PHP as the PHP syntax is somewhat similar to C.

PHP is compatible with almost all servers used today (Apache, IIS, etc.). PHP supports many databases such as MySQL, Oracle, PostgreSQL etc. PHP with MySQL database and Apache Server is a very good and popular combination. PHP combined with MySQL are cross-platform.

PHP is the widely-used, free, and efficient alternative to competitors such as Microsoft's ASP and Sun Microsystems JSP. PHP is perfectly suited for Web development and can be embedded directly into the HTML code. PHP is often used together with Apache (web server) on various operating systems. It can be also used with Microsoft's IIS on Windows.

claris123 21Aug2008 14:11

Re: Why use PHP for server-side scripting?
very nice

claris123 21Aug2008 14:20

Re: Why use PHP for server-side scripting?
very nice information you have posted here about php. There are many software development companies that especially deal in PHP. All who are having innumerable queries can read this article it is extremely helpful to everyone. You can create dynamic web pages with the PHP scripting language. A dynamic Web page interacts with the user, so that each user visiting the page sees customized information. PHP can also be used to create dynamic web pages that are generated from information accessed from a MySQL database. You can embed PHP commands within a standard HTML page. PHP's syntax is similar to that of C and Perl, making it easy to learn for anyone with basic programming skills.

Magena 6Sep2008 15:21

Re: Why use PHP for server-side scripting?

IS asp better than php? I heard somewhere that asp is used in corporate levl but on the other hand php used in commercial level.
IS it true?


gkumar 17Jun2009 16:06

Re: Why use PHP for server-side scripting?
Server-side scripts connect the web page with a database or application, allowing you to customize your site for different users and serve dynamic pages. Scripting options included PHP scripts. They all live on your site's server and rely on its processing power.

ejaith 11Nov2010 19:32

Re: Why use PHP for server-side scripting?
very comprehensive and valuable explanation..

joy1986joy 30Dec2010 17:59

Re: Why use PHP for server-side scripting?
Php will get more response when it will have more security. Today most of people fear of its security issue.

seoabhisek 4Feb2011 11:09

Re: Why use PHP for server-side scripting?
nice buddy continue sharing these type of good & valuable informations.!

pein87 9Feb2011 07:12

Re: Why use PHP for server-side scripting?
@Magena there are corporations that use php and commercial software that uses asp.net. The major difference is asp can be used as both windows programming and web programing while php can do both its not as easy to do. ASP sites are compiled when ran into windows byte code and can only run on windows while php has its own byte code and can run anywhere and without a server. If your using windows the best option is ASP because of the visual IDE so your apps can be made as fast as possible. because of this corporations use it over any other language due to its easy to create nature. It also leads to a batch of coders who dont know how to code and rely on components and hand outs. You could say that ASP runs faster because you have to strong type the code so it does not need to guess the types on compile.

kumarmannu 9Feb2011 14:54

Re: Why use PHP for server-side scripting?
Thanks for sharing this information.

All times are GMT +5.5. The time now is 02:25.