Wampserver php root relative path not working anymore

8
March 14, 2019, at 7:50 PM

I am sorry for asking similiar question that have already been asked, but I did not find an answer to my problem.

I was forced to clean-install of OS last week, so I installed the latest Wampserver (3.1.7). I have copied my page to www folder (also databases), but my page is not working anymore. One example of many warnings:

Warning: include_once(/inc/header.php): failed to open stream: No such file or directory...

Folder inc is in the root folder of my page and, obviously, header.php is in the folder. It works when I leave slash before inc:include_once(inc/header.php), or when I add dot before slash: include_once(./inc/header.php).

So I know how to make it work, but I do not consider rewriting of all paths in all pages as a solution. It worked perfectly with Wampserver 3.1.0 few weeks ago - so what am I doing wrong? Has something changed in wampserver, should I set something I do not know about? Thank you for every advice.

READ ALSO
Merge Two Arrays to Have an Integer Value be an near equal as possible

Merge Two Arrays to Have an Integer Value be an near equal as possible

Application to Distribute Stock between Warehouses

16
I have 3 TLD .com .es .ru And I have a question

I have 3 TLD .com .es .ru And I have a question

I have a webpage translated into 3 languages, my question isI would like when you enter with

36
Adding postfix to WooCommerce product variation gets overwritten

Adding postfix to WooCommerce product variation gets overwritten

Im beginning to expect that there is some "update function" built into WooCommerce that only lets me rename variations post_title for a little whileAnd then it gets set back to what the hooks / WooCommerce has decided?

23
Is it possible to check when cookie file was created?

Is it possible to check when cookie file was created?

Is it possible to check when the cookie file was created using a web based language like PHP or JS? Would this be useful in determining if a cookie has been copied from the original device it was set on to a new device?

23