02 PHP Installation
02 PHP Installation
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:
Just create some .php files, place them in your web directory, and the server will
automatically parse them for you.
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
Run »
Try it Yourself »
PHP Version
To check your php version you can use the phpversion() function:
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
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
HTML
CSS
SPACES
JAVASCRIPT SQL
UPGRADE
PYTHON JAVA
AD-FREE
PHP HOW TO W3.CSS C
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.
https://www.w3schools.com/php/php_install.asp 5/6
1/23/24, 11:30 PM PHP Installation
W3.CSS.
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
https://www.w3schools.com/php/php_install.asp 6/6