+ 1
Tried to make simple mvc with php(php -S localhost:port) tranfered to xampp, and had problems with the path
1. Tried to make simple mvc with php using (php -S localhost:port) but when transfered with xampp .. the path doesnt work.. 2. if (URL == "/forum") include "./components/forum.php";""" but the URL shows (http://localhost/folder/) so i tried if (URL == "/folder/forum") include "./components/forum.php"; but doesn't work.. //anyway just started learning PHP
1 Odpowiedź
+ 1
could you give more context or perhaps some of the code or any of the errors it gives. That would help getting the bigger picture and perhaps the posibility for an answer.