Find the answer to your Linux question:
Results 1 to 2 of 2
Hello! I m new to the Open Source Environment... Just started learning it. I wanted to know how that PHP talks to Web Server and Database Server? I have read ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2004
    Posts
    1

    PHP


    Hello!

    I m new to the Open Source Environment... Just started learning it.

    I wanted to know how that PHP talks to Web Server and Database Server?

    I have read some general stuff... but the idea is not very clear.
    somebody please help me in understanding who talks with who using what? What are the components that carry out the conversation.

    Hope to get an understandable responce.

    Any tips for newbiees r also welcome!

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    You webserver (apache most likely), loads a PHP module and is configured such that when a request is recieved for a page with a .php extension the webserver passes it to the PHP module to deal with. the php module parses the PHP code and "executes" it - ie carries out the instructions within. Database connectivity is done through PHP which can be compiled to include the MySQL libaries which allows it to talk to mysql. Once the page has been parsed it is passed back to the webserver which sends it back to the HTTP client.

    Jason

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •