I'm looking at a bit of script and I'm not sure what the "//" does.
$ResultsFolder = "./" . "Results";
$CompanyFolder = $ResultsFolder."//".$CompanyName;
I'm looking at a bit of script and I'm not sure what the "//" does.
$ResultsFolder = "./" . "Results";
$CompanyFolder = $ResultsFolder."//".$CompanyName;
Beware: it doesn't do anything in a filesystem, but it will in browsers.
Example: your script is hosted at https://dummy.tld/folder/file.php, and containing the following:
<a href="[url, see below]">Link</a>
[url] could be:
example.txt -> https://dummy.tld/folder/example.txt
/example.txt -> https://dummy.tld/example.txt
//example.txt -> https://example.txt/
Note: this behaviour applies only if it starts with '//something', if you're using './/something', it will resolve to 'something'.