You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: php/lesson1/tutorial.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ Hello World
60
60
61
61
## How to the output in the browser?
62
62
63
-
Seeing it on the Command Line is great, but what about the browser? We will need to get a WebServer running, the easiest way is to use the buil-in PHP WebServer.
63
+
Seeing it on the Command Line is great, but what about the browser? We will need to get a WebServer running, the easiest way is to use the built-in PHP WebServer.
64
64
65
65
*Note: Built-in PHP WebServer is great for Development, but **NOT** Production.*
66
66
@@ -70,12 +70,12 @@ Go to the directory where you created the `index.php` file and run the following
70
70
$ php -S 0.0.0.0:8080
71
71
```
72
72
73
-
1.You are already familiar with the `php` command from before
73
+
1.`php` is the same command from before, that we used to run our **php** script
74
74
2.`-S` means built-in WebServer
75
75
3.`0.0.0.0` is the IP that the WebServer should listen on. By using `0` it will listen on everything - fine for development
76
76
4.`8080` is the port to listen on - fine for development but in production the default port is `80` and therefore not required when accessing a URL
77
77
78
-
Lets see the script output in the browser, in your browser (ideally **Firefox** or **Chrome**) navigate to ` http://localhost:8080/` and you should see:
78
+
Lets see the script output in your web browser! In your web browser navigate to ` http://localhost:8080/` and you should see:
0 commit comments