
最好的方法是检测您是否使用Windows服务器。由此您可以应用正确的命令
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { echo 'This is a server using Windows!';} else { echo 'This is a server not using Windows!';}欢迎分享,转载请注明来源:内存溢出

最好的方法是检测您是否使用Windows服务器。由此您可以应用正确的命令
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { echo 'This is a server using Windows!';} else { echo 'This is a server not using Windows!';}欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)