0% found this document useful (0 votes)
7 views

02 PHP Installation

The document discusses installing PHP by using a web host with PHP support, setting up PHP on your own PC by installing a web server and PHP, and checking the PHP version. Key steps include finding a web host with PHP and MySQL support, installing a web server and then PHP and MySQL on your own PC, and using the phpversion() function to check the PHP version.

Uploaded by

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

02 PHP Installation

The document discusses installing PHP by using a web host with PHP support, setting up PHP on your own PC by installing a web server and PHP, and checking the PHP version. Key steps include finding a web host with PHP and MySQL support, installing a web server and then PHP and MySQL on your own PC, and using the phpversion() function to check the PHP version.

Uploaded by

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

1/23/24, 11:30 PM PHP Installation

 Tutorials  Exercises  Services   Sign Up Log in

HTML
 CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C

PHP Installation
❮ Previous Next ❯

What Do I Need?
To start using PHP, you can:

Find a web host with PHP and MySQL support


Install a web server on your own PC, and then install PHP and MySQL

Use a Web Host With PHP Support


If your server has activated support for PHP you do not need to do anything.

Just create some .php files, place them in your web directory, and the server will
automatically parse them for you.

You do not need to compile anything or install any extra tools.

Because PHP is free, most web hosts offer PHP support.

Set Up PHP on Your Own PC


However, if your server does not support PHP, you must:

install a web server

https://www.w3schools.com/php/php_install.asp 1/6
1/23/24, 11:30 PM PHP Installation

install PHP
 Tutorials
install  Exercises
a database, such as Services 
 MySQL  Sign Up Log in

HTML CSS PHPJAVASCRIPT


The official SQL has PYTHON
website (PHP.net) installation JAVA PHPfor PHP:
instructions HOW TO W3.CSS C
http://php.net/manual/en/install.php

PHP Online Compiler / Editor


With w3schools' online PHP compiler, you can edit PHP code, and view the result in your
browser.

    Run »

<?php I love PHP!


$txt = "PHP";
echo "I love $txt!";
?>

Try it Yourself »

Click on the "Try it Yourself" button to see how it works.

PHP Version
To check your php version you can use the phpversion() function:

Example Get your own PHP Server

Display the PHP version:

echo phpversion();

Try it Yourself »

https://www.w3schools.com/php/php_install.asp 2/6
1/23/24, 11:30 PM PHP Installation

❮ Previous
Tutorials  Exercises  Services  
Log in to track progress
Sign Up Log in
Next ❯
HTML
 CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C

ADVERTISEMENT

https://www.w3schools.com/php/php_install.asp 3/6
1/23/24, 11:30 PM PHP Installation

 Tutorials  Exercises  Services   Sign Up Log in

HTML
 CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C

COLOR PICKER



ADVERTISEMENT ADVERTISEMENT

https://www.w3schools.com/php/php_install.asp 4/6
1/23/24, 11:30 PM PHP Installation

 Tutorials  Exercises  Services   Sign Up Log in

HTML
 CSS
 SPACES
JAVASCRIPT SQL
UPGRADE
PYTHON JAVA
AD-FREE
PHP HOW TO W3.CSS C

NEWSLETTER GET CERTIFIED REPORT ERROR

Top Tutorials Top References


HTML Tutorial HTML Reference
CSS Tutorial CSS Reference
JavaScript Tutorial JavaScript Reference
How To Tutorial SQL Reference
SQL Tutorial Python Reference
Python Tutorial W3.CSS Reference
W3.CSS Tutorial Bootstrap Reference
Bootstrap Tutorial PHP Reference
PHP Tutorial HTML Colors
Java Tutorial Java Reference
C++ Tutorial Angular Reference
jQuery Tutorial jQuery Reference

Top Examples Get Certified


HTML Examples HTML Certificate
CSS Examples CSS Certificate
JavaScript Examples JavaScript Certificate
How To Examples Front End Certificate
SQL Examples SQL Certificate
Python Examples Python Certificate
W3.CSS Examples PHP Certificate
Bootstrap Examples jQuery Certificate
PHP Examples Java Certificate
Java Examples C++ Certificate
XML Examples C# Certificate
jQuery Examples XML Certificate

    FORUM ABOUT
W3Schools is optimized for learning and training. Examples might be simplified to
improve reading and learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we
cannot warrant full correctness
of all content. While using W3Schools, you agree to have read and accepted our terms of
use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by

https://www.w3schools.com/php/php_install.asp 5/6
1/23/24, 11:30 PM PHP Installation
W3.CSS.

 Tutorials  Exercises  Services   Sign Up Log in

HTML
 CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C

https://www.w3schools.com/php/php_install.asp 6/6

You might also like