PhpStorm Localhost 404 Not Found
已回答
I try to run my files, like /path/to/htdocs/weather.php, on localhost, and it says 404 Not Found, with the PhpStorm logo on the tab.
Here's a screenshot:
if y'all need more info, just ask!
请先登录再写评论。
Hi there,
The URL (and favicon) suggests that you are using PhpStorm's built-in simple web server.
It requires URLs to be in this form: http://localhost:PORT/PROJECT_NAME/path/to/file.php. PROJECT_NAME part is required (it acts like a domain name in proper web server -- to identify what project/files to serve).
Questions:
Oh my god, it worked when I added htdocs before the path! Thanks!