Why use PHP for server-side scripting?

Discussion in 'PHP' started by Sanskruti, May 21, 2007.

  1. Sanskruti

    Sanskruti New Member

    Joined:
    Jan 7, 2007
    Messages:
    108
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Consultant
    Location:
    Mumbai, India
    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.
     
    Siya Carla and Rajesh M. Kanojia like this.
  2. claris123

    claris123 New Member

    Joined:
    Aug 21, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
  3. claris123

    claris123 New Member

    Joined:
    Aug 21, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
    Last edited by a moderator: Aug 21, 2008
  4. Magena

    Magena Banned

    Joined:
    Jul 12, 2008
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    0
    HI

    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?


    thanks
     
  5. gkumar

    gkumar New Member

    Joined:
    Jun 16, 2009
    Messages:
    58
    Likes Received:
    5
    Trophy Points:
    0
    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.
     
  6. ejaith

    ejaith New Member

    Joined:
    Nov 11, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    very comprehensive and valuable explanation..
     
  7. joy1986joy

    joy1986joy New Member

    Joined:
    Nov 8, 2010
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    India
    Php will get more response when it will have more security. Today most of people fear of its security issue.
     
  8. seoabhisek

    seoabhisek Banned

    Joined:
    Jan 22, 2011
    Messages:
    24
    Likes Received:
    1
    Trophy Points:
    0
    nice buddy continue sharing these type of good & valuable informations.!
     
  9. pein87

    pein87 Active Member

    Joined:
    Aug 6, 2010
    Messages:
    173
    Likes Received:
    47
    Trophy Points:
    28
    Occupation:
    Web Dev
    Location:
    Limbo
    @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.
     
  10. kumarmannu

    kumarmannu Banned

    Joined:
    Feb 2, 2011
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    0
    Thanks for sharing this information.
     
  11. kamranrt

    kamranrt New Member

    Joined:
    Jan 14, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I have read an interesting article about a similar topic ....
    i think you must check it out it will help you to learn which one is better PHP or ASP..
    revolutionary-technologies.com/blog/
     
  12. shrnmlss6

    shrnmlss6 New Member

    Joined:
    Jul 20, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    php is open source and it is free downloadable (freely downloadable from from php.net and zend.com). php version 5.2.14 is available on Webserve.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.we can also increase the memory limit in php.ini file.
     
  13. Rocky11

    Rocky11 New Member

    Joined:
    Jun 23, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    http://sitepoint.com
    Php is widely used for web development. Because it is efficient and effective because of the open source tools available for its support. Any beginners can make use of the online tutorials to learn this scripting language.
     
  14. j.smith1981

    j.smith1981 New Member

    Joined:
    Mar 22, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    UK
    Have you considered Netbeans or Eclipse (I know Netbeans has a plugin for PHP) that's an IDE aimed more at the Open source languages. But to get those working for C or C++ you'd need cygwin for the debuggers. But to say there's no IDE for PHP is wrong just thought I'd make you aware.
     
  15. j.smith1981

    j.smith1981 New Member

    Joined:
    Mar 22, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    UK
    Sorry I just wanted to rephrase that I am sorry, you didn't say there wasn't any IDE's for PHP but honestly Netbeans is (I think personally) one of the best IDE's out there. Though I have never used Eclipse.

    There is the Zend Studio Client which can plug into a Zend Server (an extension to a HTTP server) that can profile performance of your PHP applications on the web and show you codes which are taking longer to process through so you can spot problems much quicker.

    But to use some of Zend Servers more Advanced Features (all of them actually) you have to pay for a licence. Zend Client is pretty much like Visual Studio really (least I remember it being called that years ago in 2005/06).
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice