rblhhi / php-course

An introduction to PHP with HTML
https://lab.github.com/everydeveloper/introduction-to-php
0 stars 0 forks source link

Setting up PHP #2

Closed github-learning-lab[bot] closed 3 years ago

github-learning-lab[bot] commented 3 years ago

Setting up PHP

PHP is server-side code that runs on top of a normal HTML website. This means you can use HTML and PHP together.

Displaying Content

In this example, we used the "echo" command to insert an HTML header within the php tags. All of our php code will be contained in these tags.

Make sure you always end every statement with a semicolon

In your browser, click on the php-course folder, and you should see the header we inserted being displayed.

If it worked, save your changes to GitHub.

git add index.php
git commit -m"initial php setup"
git push origin master
github-learning-lab[bot] commented 3 years ago

Great!

Click here to learn how to create variables in PHP.