Reputation: 37
For some reason I'm not able to figure out, this is not working. I'm a novice and I'm currently stuck here. Any help will be much appreciated! Thank you in advance, Gabriel
Upvotes: 1
Views: 55
Reputation: 943979
You are running php -S
in the wrong directory.
The www
directory is inside a directory called php
somewhere inside your One Drive directory, but you are running php -S
from a directory called i346241
.
The server started by php -S
takes the current directory to be the root of the development server.
Upvotes: 2
Reputation: 156
Create a new folder and then go to it in cmd using cd
command. And move the file into it.
Then start the php server again and acces it using this link:
localhost:4000/site.php
Or install apache server as @mshahien said. You can use xampp.
Upvotes: 2
Reputation: 63
you should consider installing apache webserver and setup the host file in your pc Apache : https://knowledgebase.progress.com/articles/Article/How-to-install-Apache-HTTP-Server-on-Windows-Server
Set Hosts file in win : https://docs.serverpress.com/article/176-windows-10-and-localhost-is-blank
Upvotes: 2