Reputation: 2096
I am running under windows php, but a used posix_uname() lies
Fatal error: Call to undefined function posix_uname().
Upvotes: 2
Views: 3822
Reputation:
As stated by @Thamizhan, POSIX is not available in Windows; however, if you need to use it, and if your target platform is a Linux server anyway; the following will make it possible to develop & test on your Windows development machine, but it will run under Linux:
After all the above is ready, if POSIX is not already installed, you can just install it by reading up on your specific distro, but here's a good article: https://wiki.archlinux.org/index.php/PHP
After all your requirements are installed, remember to restart the Apache server; the link will help with this; but, again, choose a distro you feel comfortable with, maybe Ubuntu, -or Mint could aid in "smooth transition" over to Linux :)
Upvotes: 1