Welcome Guest, Not a member yet? Register   Sign In
Bug in ci/index.php concerning server path?
#4

[eluser]WanWizard[/eluser]
For PHP, it's not a problem to use Unix style directory separators in a Windows environment. Problem starts with user input (who are used to C:\), and certain PHP functions, like realpath, that return backslashes on a Windows platform.

I would say that CI should work uniformly, so on a Windows platform, make sure everything is using backslashes, and on other platforms, use forward slashes. In which case all hardcoded slashes need to be replaced by DIRECTORY_SEPARATOR. And yes, in core code CI should take care of this.


Messages In This Thread
Bug in ci/index.php concerning server path? - by El Forum - 03-22-2011, 04:02 AM
Bug in ci/index.php concerning server path? - by El Forum - 03-22-2011, 06:44 AM
Bug in ci/index.php concerning server path? - by El Forum - 03-22-2011, 06:55 AM
Bug in ci/index.php concerning server path? - by El Forum - 03-22-2011, 07:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB