鍍金池/ 問答/PHP/ 如何使函數(shù)posix_getpid()有效?

如何使函數(shù)posix_getpid()有效?

<?php
echo posix_getpid(); //8805
?>

瀏覽器輸出:Fatal error: Call to undefined function posix_getpid()
如何使這個(gè)函數(shù)有效?

回答
編輯回答
柒槿年

posix_getpid函數(shù)依賴于POSIX擴(kuò)展,而POSIX擴(kuò)展不支持在Windowns中使用。

2018年9月4日 14:08