1/23/24, 11:30 PM PHP Installation
Tutorials Exercises Services Sign Up Log in
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO [Link] 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
[Link] 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 ([Link]) installation JAVA PHPfor PHP:
instructions HOW TO [Link] C
[Link]
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 »
[Link] 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 [Link] C
ADVERTISEMENT
[Link] 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 [Link] C
COLOR PICKER
ADVERTISEMENT ADVERTISEMENT
[Link] 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 [Link] 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 [Link] Reference
[Link] 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
[Link] 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
[Link] 5/6
1/23/24, 11:30 PM PHP Installation
[Link].
Tutorials Exercises Services Sign Up Log in
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO [Link] C
[Link] 6/6