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: docs/FAQ.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
@@ -6,13 +6,13 @@
6
6
I'm new to this live-server thing. I have used it for *`.html`* pages, and it worked flawlessly! But now, when I want to use it for php pages, it downloads the .php file instead of executing it.
7
7
8
8
**Answer:**
9
-
1.[The Common Misconceptions](#the-common-misconception)
9
+
1.[The Common Misconception](#the-common-misconception)
10
10
2. You will need to install a server on your machine or download the necessary requirements. Here is a Stackoverflow question: [PHP server on local machine?](https://stackoverflow.com/questions/1678010/php-server-on-local-machine)
11
11
+ [PHP](http://php.net/downloads.php) (just the preprocessor without apache)
3. Visit the ***Actual Server Address***: `http://localhost:[port_number]/[workspace]`, not the VS Code extension's ***Live Server Address***: `http://127.0.0.1:5500/`
15
+
3. Visit the ***Actual Server Address***: `http://localhost/[workspace]`, not the VS Code extension's ***Live Server Address***: `http://127.0.0.1:5500/`
16
16
17
17
<br><br><hr><br>
18
18
@@ -23,7 +23,7 @@ Hi, I wonder why I have to run my own server when the vscode extension will star
23
23
The two main reasons are the flexibility, and the complexity of server-side environment.
24
24
For instance, in order to be able to use this add-on in all environments and not to
25
25
prevent the user from a specific php verion, or running Apache with PHP.
26
-
It is therefore preferable that the user can decide for yourself which environment to use.
26
+
It is therefore preferable that you as a user can decide for yourself which environment to use.
27
27
Another thing is that the server side is heavier than the client side because it needs a
28
28
larger server environment to run- and preprocess your code in PHP, NodeJS or .NET.
0 commit comments