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'.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.