这个错误提示是因为gethostname()函数不需要传递参数,但是在调用时却传递了一个参数,导致出现了错误。

解决方法:

  1. 删除gethostname()函数中的参数
  2. 检查代码中是否有误传参数给gethostname()函数
  3. 如果确认需要传递参数,可以使用其他相关函数,如gethostbyaddr()或gethostbyname()等。
php 错误 gethostname expects exactly 0 arguments 1 given

原文地址: http://www.cveoy.top/t/topic/cpV8 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录