I have seen that there are many similar to mine questions here on StackOverflow, but I think I was not able to find the correct solution to my question yet.
The prob
While looking doing more research and asking around I found this extremely useful answer what finally got my local XAMPP configuration fixed. So there was nothing wrong with code itself but my configuration was the issue.
IMPORTANT: try to follow the steps as close as possible, simple ;
missing can do the big difference in the final result. So double check every step if something seems to be broken.
Also found one other very insightful and interesting to read post.