Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slashes in path to bootstrap.php #37

Open
SendiMyrkr opened this issue Jul 11, 2017 · 4 comments
Open

Slashes in path to bootstrap.php #37

SendiMyrkr opened this issue Jul 11, 2017 · 4 comments
Assignees
Milestone

Comments

@SendiMyrkr
Copy link

Is possible to make something with that? When i work in Windows i've something like "require_once DIR . '/........\bootstrap.php';" in code. Is possible to force change slashes to forward one even when i use Windows?

@jiripudil jiripudil self-assigned this Jul 12, 2017
@jiripudil jiripudil added this to the 2.0.0 milestone Jul 12, 2017
@adaamz
Copy link

adaamz commented Jul 13, 2017

yes, it is annoying when I upload it to Unix server and it complains :-/
Windows understand unix slashes (/), so it would be nice to force unix style.

@mesour
Copy link
Collaborator

mesour commented Nov 22, 2020

@SendiMyrkr you can use PHP constant DIRECTORY_SEPARATOR in your code. https://stackoverflow.com/questions/26881333/when-to-use-directory-separator-in-php-code/26881417

@mesour mesour closed this as completed Nov 22, 2020
@SendiMyrkr
Copy link
Author

It's a some time, but if i remember well, than problem was in generated path which was generated depending by used OS. Thats a problem when someone works on windows and has linux server.

@mesour mesour reopened this Nov 23, 2020
@mesour
Copy link
Collaborator

mesour commented Nov 23, 2020

Aha, If it is generated in the plugin, I will look at it and I will try to fix it.

@mesour mesour closed this as completed Nov 23, 2020
@mesour mesour reopened this Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants