Explanation/example of how to get the file to display in browser (#22554)

* More detailed explanation/example

A little extra explanation about how to get the example file to display in the browser.

* Used 'note' for changes
pull/23864/head^2
Vincent 2018-11-09 04:10:51 -05:00 committed by Manish Giri
parent 75dd7e7595
commit 104d717756
1 changed files with 2 additions and 0 deletions

View File

@ -41,3 +41,5 @@ echo "My first PHP script!";
</body>
</html>
```
Note: You cannot simply open this file with your browser as you could with an html file. In order for this file to display properly in your browser, you must place it in an accessible folder on a server. A simple example: To do this in apache, you would be replacing the "index.html" file with this file and naming it "index.php" (You should check that php is enabled on your apache server).