does php require a database or server?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MusoFreak200
    New Member
    • Oct 2009
    • 96

    does php require a database or server?

    hello everyone...

    i know that i just asked a similar question but...

    does php require a database or server?

    thank you for your answers in advance...
  • vivekgs2007
    New Member
    • Mar 2010
    • 62

    #2
    hello,
    As a php is server side scripting...u need server is must, if u want to run the php scripting. If u want store some data and if u want retrieve some data, then it must that database is required...
    For server u can use Apache,
    and for database u can use MYSQL ...these are completely free..

    Comment

    • MusoFreak200
      New Member
      • Oct 2009
      • 96

      #3
      i was waiting a while so...
      thank you vivekgs2007

      Comment

      • Atli
        Recognized Expert Expert
        • Nov 2006
        • 5062

        #4
        Hey.

        Technically you don't need either of those. PHP is just a programming language, and you can use it as such on any computer. In fact, PHP has it's own bindings to GUI environments like GTK, which allows you to build PHP desktop applications.

        However, PHP as a server-side language will obviously require a server, and that is the most common use of PHP (by far).

        And you don't need a database either. PHP itself has nothing to do with databases. It can of course utilize them, just like any other programming language. And for server-side applications, using a database server like MySQL is a very good option. -- But that is in no way your only option for storing data. PHP can use pretty much any data storage you can think of.

        Comment

        Working...