PHP Introduction
PHP (Hypertext Preprocessor) is a widely-used open source scripting language especially suited for web development.
What Can PHP Do?
- Generate dynamic page content
- Create, open, read, write, and close files on the server
- Collect form data
- Send and receive cookies
- Add, delete, modify data in your database
Basic PHP Syntax
<?php
// PHP code goes here
echo "Hello, World!";
?>
PHP File Structure
<!DOCTYPE html>
<html>
<body>
<?php
echo "My first PHP script!";
?>
</body>
</html>
Back to Tutorials