0% found this document useful (0 votes)
23 views4 pages

Needed Environment

PHP is a scripting language that allows websites to be dynamic and interactive by performing tasks like sending emails, uploading files, generating thumbnails, and interacting with databases like MySQL. MySQL is a free and open-source relational database management system that is widely used due to its low cost, speed, and cross-platform compatibility. It stores information in tables with rows and columns like a spreadsheet. PHP communicates with MySQL by connecting, selecting a database, preparing and executing SQL queries, and then extracting the data from the results.

Uploaded by

KaviYarasu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views4 pages

Needed Environment

PHP is a scripting language that allows websites to be dynamic and interactive by performing tasks like sending emails, uploading files, generating thumbnails, and interacting with databases like MySQL. MySQL is a free and open-source relational database management system that is widely used due to its low cost, speed, and cross-platform compatibility. It stores information in tables with rows and columns like a spreadsheet. PHP communicates with MySQL by connecting, selecting a database, preparing and executing SQL queries, and then extracting the data from the results.

Uploaded by

KaviYarasu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Needed environment:

PHP
Mysql
Wamp or Xampp webserver
PHP:
PHP stands for PHP: Hypertext Preprocessor. PHP is a scripting language that
brings websites to life in the following ways:
Sending feedback from your website directly to your mailbox
Sending email with attachments
Uploading files to a web page
Watermarking images
Generating thumbnails from larger images
Displaying and updating information dynamically
Using a database to display and store information
Making websites searchable












Advantages of using mysql:
Cost:
The MySQL Community Edition is free under the open source GPL license
(www.gnu.org/copyleft/gpl.html).
Powerful:
The same basic database system as the Community Edition is used by
leading organizations such as NASA, Yahoo!, and Alcatel. Its feature-rich and
fast.
Widespread availability:
MySQL is the most popular open source database. Most
hosting companies automatically offer MySQL in combination with PHP.
Cross-platform compatibility:
MySQL runs on Windows, Mac OS X, and Linux. A
database created on one system requires no conversion when transferred to
another.
Open source:
Although there is a commercial version, the code and features in the
Community Edition are identical. New features are being added constantly.
Security:
Bugs, when found, are dealt with quickly.

How a database stores information
MySQL is a relational database system. All the data is stored in tables, very much
in the
same way as in a spreadsheet, with information organized into rows and columns.
How PHP communicates with MySQL
Regardless of whether you use PHPs MySQL functions, the MySQL Improved
functions, or
PDO, the process always follows this sequence:
1. Connect to MySQL using the hostname, username, and password.
2. Select the database you want to work with (combined with 1 in MySQLI and
PDO).
3. Prepare a SQL query.
4. Execute the query and save the result.
5. Extract the data from the result (usually with a loop).
-----------------------------------------------------

You might also like