I want to test my index.php and related files in my PHP localhost using the method found in this top comment. I was able to set up my localhost properly using the command:
$ php -S localhost:8000
Now, when I enter http://localhost:8000/ into my browser. I am able to see the index.php but without the effects of my style.css. In addition, the links do not work and the images do not show as well. Below are sample and containers that I use:
<li><a href='next.html'>Next></a></li>
and
<img src="localhost/marriage2.png" alt="marriage2">
marriage2.png
and next.html
are both located in the same directory as index.php. This setup works on the live server but not on my local. Any idea as to why this issue is occurring in localhost?