Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: ScanCore – Command-line virus scanner in 19.5kb of PHP (github.com/zelon88)
3 points by zelon88 on Oct 19, 2019 | hide | past | favorite | 2 comments


So, PHP on Windows.

I’m curious — is that a common choice? Can someone give me a quick comparison and contrast with what you think the obvious alternatives would be?

I don’t know much about Windows, and what little experience I have with PHP is exclusively on Linux, so I’m genuinely interested in the answers — and discussion — around this question.


From what I've learned it's very similar. The main difference is directories use forward slash instead of backslash, which is why I've taken to using "DIRECTORY_SEPARATOR" instead. Functionally it's not a big deal going from a linux app to Windows because Windows will translate the path for file operations (but not for echo or print operations). Linux I don't think will translate forward slash to backslash.

One of the main reasons I chose PHP is because it's considerably faster than Python for this. I'm like 99.9% sure that statement is true but I've never ported this so I can't say for certain. I've just done way less complicated loops in Python that still take way longer than this one.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: