Jump to content

How php/mysql/xhtml interact?


cobalt-rose

Recommended Posts

  • 2 weeks later...

Put simply,

 

MySQL stores your data: user info, products, articles and even data used by the application (like sessions or oftenly changed configurations values ).

 

PHP is your engine: operates on the data stored on MySQL.

 

MySQL is one type of storage, PHP can operate data from other database types, from files, and even from other systems on the internet, most often called Web Services.

 

XHTML is a container of data that is understood by all browsers, so that's how PHP (and other systems) interacts with  browsers, therefore, the end-user.

 

 

  • 3 weeks later...

Thanks of the reply, but is there not any literature about it at all? or is it just a common fact.

Thanks again

 

Cobalt - you need to realize that no "website god" decided one day "Hm I will create php/mysql/js/html to all interact. Then I will put in xmlhttprequest and wait for people to discover ajax!"

 

 

This has nothing to do about literature or documentation, these languages/technologies are separate, but as time went on people discovered that they could be used together to good effect.

 

 

It's like LAMP servers - obviously linux/apache/mysql/php are completely separate entities - nobody DECIDED they would interact, they just do

 

 

 

As for a diagram of how they interact - I'm sure there's something like this out there somewhere.... but then the diagram would just be exactly what dom_scott wrote to you. So you could save trouble by just reading what he said and drawing a picture I guess?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.