Hello, after a few days absence without a dummy question of the day, I’m back…
Does Xway prefer relative addressing or “full URL” to call PHP files that I “store” in a directory protected by an htaccess (full url could be difficult)? I ask this question because all my tests work fine except for a “cookie-consent” I made that does not call what it should call when I visit my site with Duckduckgo. I know he is very good at disabling Java, that’s why I opted for the PHP approach for this warning window that has become mandatory to comply with European standards that are so well thought out thanks to our money… I think I am clearly expressing here all the good things I think of our technocrats who have managed the feat of putting all our companies behind on AI and who are now investing our money via subsidies to catch up (but it’s too late) on the delay they created… anyway, let’s get back to PHP and its calling methods, I use relative addressing, but is this really how Xway wants it? Yes, I warned you, it’s a dummy question of the day.
If this is PHP on the page that you’re referring to, say something like the following, Xway plays almost no part in that - only the location of the file it’s on.
<?php
include(“something.php”)
>?
Your web server will be processing the PHP before giving the page to the browser.
Paths to other PHP files and things like that will be based on where they reside on your web server. They can be relative but they will be relative to whatever file is trying to use them.
For example, a reference from your home page might be something.php
while a reference to the same file from a page within two folders would be ../../something.php
.
Hi @simonmanning
Thank you for your detailed and precise response.
Yes, that’s exactly it. So my addressing is correct. Since Xway doesn’t interfere with addressing in any other way (I suspected as much, but I needed your confirmation), I now need to engage more brainpower to figure out what I’m not doing correctly with my homemade cookie consent. It’s frustrating because, for my homemade blog, which is much more complex, I have no addressing issues, and it works (although, to be honest, I’m struggling a bit with the href, but I know why, so the solution should reveal itself soon). Thanks again, and I’m back to my quest for the lost address .