Jag utvecklar på Windowsburkar, mina sajter ligger på Windowsburkar, men tänkte nu ge mig på att leka lite på Linux oxå, så jag la över en av mina sajter från utvecklingsburk med Windows till ett webbkonto med Linux.
Allt verkar fungera bra, dock en grej som förbryllar mig och det lyder som följande:
Följande är koden, rakt upp och ner på en i övrigt tom sida:
Note that PHP_SELF will not be equal to REQUEST_URI under Apache if mod_rewrite has been used to move one URL to another--PHP_SELF will contain the rewritten address, and REQUEST_URI will contain the URL the user sees in their browser.
The filename of the currently executing script, relative to the document root. For instance, $\_SERVER\['PHP_SELF'\] in a script at the address <http://example.com/test.php/foo.bar> would be /test.php/foo.bar. The \__FILE_\_ constant contains the full path and filename of the current (i.e. included) file.
Det finns väl en hel del andra skillnader också? Läser man i guiden om olika kommandon så ska man ibland göra på olika sätt för Windows/*Nix servrar. Ibland finns inte funktioner på windows-servrar.
Vet att jag set skillnader när man håller på med datumvariabler bla...
266 ms totalt · 4 externa anrop · v20260731065814-full.a51de22e