Tried to make simple mvc with php(php -S localhost:port) tranfered to xampp, and had problems with the path | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

24th Jan 2022, 12:36 AM
nrd-li4
nrd-li4 - avatar
1 Answer
+ 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.
10th Feb 2022, 3:21 PM
Leo
Leo - avatar